当前位置:网站首页>PowerDesigner design name and comment replacement
PowerDesigner design name and comment replacement
2022-07-01 19:47:00 【Mischief 1124】
comment It's a comment .name Is the field description
stay PowerDesigner The operation is as follows
PowerDesigner-->Tools-->Execute Commands-->Edit/Run Scripts Next execution OK 了 .
hold comment Cover name The method is as follows :
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim mdl ' the current model
' get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then
MsgBox "There is no current Model "
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The current model is not an Physical Data model. "
Else
ProcessFolder mdl
End If
Private sub ProcessFolder(folder)
On Error Resume Next
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
tab.name = tab.comment
Dim col ' running column
for each col in tab.columns
if col.comment="" then
else
col.name= col.comment
end if
next
end if
next
Dim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.name = view.comment
end if
next
' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub
take name Cover comment The method is as follows
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim mdl ' the current model
' get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then
MsgBox "There is no current Model "
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The current model is not an Physical Data model. "
Else
ProcessFolder mdl
End If
' This routine copy name into comment for each table, each column and each view
' of the current folder
Private sub ProcessFolder(folder)
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
tab.comment = tab.name
Dim col ' running column
for each col in tab.columns
col.comment= col.name
next
end if
next
Dim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.comment = view.name
end if
next
' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub
边栏推荐
- 直播HLS协议
- Interview questions for audio and video positions in Dachang -- today's headline
- Use the uni app demo provided by Huanxin to quickly realize one-on-one chat
- tensorflow报错Could not load dynamic library ‘libcudnn.so.8
- Brpc understanding
- 面试题 16.16. 部分排序-双指针法
- Unreal Engine packaging project
- GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
- Anaconda安装虚拟环境到指定路径
- 新窗口打开页面-window.open
猜你喜欢

P2433 【深基1-2】小学数学 N 合一

118. Yanghui triangle

uni-app微信小程序一键登录获取权限功能

Process steps of vibrating wire acquisition module for measuring vibrating wire sensor

HLS4ML进入方法

解决VSCode下载慢或下载失败的问题

GC garbage collection

Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results

再回顾集合容器

音视频、编解码相关电子书、小工具,打包奉送!
随机推荐
使用 Kibana Timelion 进行时间序列分析
Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding
Interview questions for audio and video positions in Dachang -- today's headline
Live HLS protocol
[Mori city] random talk on GIS data (I)
【无标题】
Is Dao safe? Build finance encountered a malicious governance takeover and was looted!
音视频、编解码相关电子书、小工具,打包奉送!
Image acquisition and playback of coaxpress high speed camera based on pxie interface
OpenCV视频质量诊断----视频遮挡诊断
Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
HLS4ML报错The board_part definition was not found for tul.com.tw:pynq-z2:part0:1.0.
Optaplanner learning notes (I) case cloud balance
A brief understanding of white box encryption technology
实例讲解将Graph Explorer搬上JupyterLab
uni-app商品分类
JVM memory model
HLS4ML进入方法
ffmpeg AVFrame 转 cv::Mat
Ffmpeg avframe to cv:: mat