PowerDesigner中name与comment互相转换脚本
来源:互联网 发布:小学生必读书目 知乎 编辑:程序博客网 时间:2024/05/13 03:19
执行方法:Open PDM -- Tools -- Execute Commands -- Run Script
Vb script代码
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 code 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
PowerDesigner中逆向工程将数据库中comment脚本赋值到PDM的name
执行方法:Open PDM -- Tools -- Execute Commands -- Run Script
Vb script代码
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 code 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
if len(tab.comment) <> 0 then
tab.name = tab.comment
end if
On Error Resume Next
Dim col 'running column
for each col in tab.columns
if len(col.comment) <>0 then
col.name =col.comment
end if
On Error Resume Next
next
end if
next
end sub
- PowerDesigner中name与comment互相转换脚本
- PowerDesigner中NAME和COMMENT的互相转换
- PowerDesigner中NAME和COMMENT的互相转换
- PowerDesigner中NAME和COMMENT的互相转换,需要执行语句
- PowerDesigner中NAME和COMMENT的互相转换,需要执行语句
- PowerDesigner中NAME和COMMENT的互相转换,需要执行语句
- PowerDesigner中NAME和COMMENT的互相转换,需要执行语句
- PowerDesigner中NAME和COMMENT的互相转换,需要执行语句
- PowerDesigner中NAME和COMMENT的互相转换,需要执行语句
- PowerDesigner中NAME和COMMENT的互相转换,需要执行语句
- PowerDesigner中NAME和COMMENT的互相转换,需要执行语句
- PowerDesigner中NAME和COMMENT的互相转换,需要执行语句
- PowerDesigner中NAME和COMMENT的互相转换,需要执行语句
- powerdesigner中name和comment转换
- 使用PowerDesigner对NAME和COMMENT互相转换
- powerdesigner中name自动转换到comment和comment2name的vbs脚本
- PowerDesigner Name和Comment 互相转化问题
- PowerDesigner--comment和name互相复制
- kafka的一些认识
- android getActionBar()报空指针异常
- python和ruby语法的简单对比
- 有限责任公司股权激励范例:股权期权协议书
- Android中级教程之----Log图文详解(Log.v,Log.d,Log.i,Log.w,Log.e)
- PowerDesigner中name与comment互相转换脚本
- JBPM具体应用之decision节点的使用
- cts_gts认证一些fail项解决办法
- java基础:位运算用法测试代码
- lintcode-有多少个点在同一条直线上-186
- 设计模式-六大原则
- Linux命令学习(三)-配置有线网卡ip地址
- VS2012快捷键
- 暴力爆破