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

最新文章

  1. HDU 4003 [树][贪心][背包]
  2. maven引入jar包时,一个jar的引入错误,会导致后来的jar包的引入。
  3. [转]PDO防注入原理分析以及使用PDO的注意事项
  4. jvm classLoader architecture :
  5. pstack使用和原理
  6. (C#) Action, Func, Predicate 等泛型委托
  7. Converting a .jks Key Store to a .pem Key Store
  8. 字符流缓冲区的使用之BufferedWriter和BufferedReader
  9. 获取当前位置信息-ios
  10. 多校第五场 归并排序+暴力矩阵乘+模拟+java大数&记忆化递归
  11. vuejs学习笔记(2)--属性,事件绑定,ajax
  12. io流读取文件
  13. Linux+.Net Core+Nginx(在Linux上使用Nginx反向代理.Net Core 项目)
  14. Linux下MySql的登陆和管理操作
  15. 【蓝桥杯真题】地宫取宝(搜索->记忆化搜索详解)
  16. InstallShield.12完美使用
  17. [2018HN省队集训D9T1] circle
  18. Web开发中需要了解的东西【转载】
  19. 让isis支持高德地图
  20. HYSBZ 2243(染色)

热门文章

  1. Opencv3.1.0安装包
  2. Linux大小端模式转换函数
  3. JavaScript里面的条件、循环语句以及异常处理
  4. error MSB6006: “aapt.exe”已退出,代码为-1073741819
  5. Web 安全概念
  6. WSingle主题 – 可能是最好的WordPress小说主题,美观大方,功能强大
  7. C++ Programming with TDD之一:GMOCK框架简介
  8. Bsd内核选项总结
  9. [CF463D]Gargari and Permutations
  10. [NC189C]硬币游戏