1、使用脚本的方式

在里面执行

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 

                        '把列name和comment合并为comment

                        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

点击run后

最新文章

  1. 在eclipse安装svn插件
  2. JavaScript基本语法(三)
  3. Unity3d游戏场景优化杂谈(4)
  4. 项目里总结出来的log4j模板
  5. laravel 中 与前端的一些事4 之合并压缩静态文件
  6. Office 2010启动时出现无法验证此应用程序的许可证的解决
  7. WPF 绑定五(本身就是数据源)
  8. error 和 exception 有什么区别?
  9. Chapter 1 First Sight——34
  10. 知乎上看到的关于类.class,对象.getClass
  11. webstorm git团队开发技巧总结(一)
  12. ranker.go
  13. VisualStudio移动开发(C#、VB.NET)Smobiler开发平台——AlbumView相册控件的使用方式
  14. 44-0-STM32的CAN外设
  15. Python爬取今日头条段子
  16. Mysql加锁过程详解(3)-关于mysql 幻读理解
  17. <记录> axios 模拟表单提交数据
  18. (转)在.net中检索HTTP请求
  19. 利用组策略API 编辑GPO(Group Policy Object)
  20. 两种JS事件流

热门文章

  1. Eclipse 下载 开源项目 maven依赖丢失和 Deployment Assembly 丢失
  2. 【软件构造】第八章第三节 代码调优的设计模式和I/O
  3. VS2015提示:未安装Style的Visual Studio语言支持,代码编辑Intellisense将不可用。服务器控件的标记Intellisense可能不起作用
  4. LeetCode 翻转字符串里的单词
  5. mysql单实例多库与多实例单库
  6. 解决每次打开pycharm直接进入项目的方法
  7. C语言学习10
  8. 03 数据解析-Xpath
  9. GIL和copy
  10. JSP中使用<c:forEach>标签循环遍历元素