PowerDisginer中NAME与COMMENT转换脚本
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
最新文章
- HDU 4003 [树][贪心][背包]
- maven引入jar包时,一个jar的引入错误,会导致后来的jar包的引入。
- [转]PDO防注入原理分析以及使用PDO的注意事项
- jvm classLoader architecture :
- pstack使用和原理
- (C#) Action, Func, Predicate 等泛型委托
- Converting a .jks Key Store to a .pem Key Store
- 字符流缓冲区的使用之BufferedWriter和BufferedReader
- 获取当前位置信息-ios
- 多校第五场 归并排序+暴力矩阵乘+模拟+java大数&;amp;记忆化递归
- vuejs学习笔记(2)--属性,事件绑定,ajax
- io流读取文件
- Linux+.Net Core+Nginx(在Linux上使用Nginx反向代理.Net Core 项目)
- Linux下MySql的登陆和管理操作
- 【蓝桥杯真题】地宫取宝(搜索->;记忆化搜索详解)
- InstallShield.12完美使用
- [2018HN省队集训D9T1] circle
- Web开发中需要了解的东西【转载】
- 让isis支持高德地图
- HYSBZ 2243(染色)
热门文章
- Opencv3.1.0安装包
- Linux大小端模式转换函数
- JavaScript里面的条件、循环语句以及异常处理
- error MSB6006: “aapt.exe”已退出,代码为-1073741819
- Web 安全概念
- WSingle主题 – 可能是最好的WordPress小说主题,美观大方,功能强大
- C++ Programming with TDD之一:GMOCK框架简介
- Bsd内核选项总结
- [CF463D]Gargari and Permutations
- [NC189C]硬币游戏