PDM导出表结构时没有注释执行语句
2015-05-31 20:11
239 查看
PDM导出表结构时没有注释执行语句 执行顺序 1 工具 2 execute commands 3 复制到 run 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 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
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
相关文章推荐
- vlc简单搭建流媒体服务器
- 机房文档总结
- lubuntu opencv环境步骤 3D项目 3
- .T in numpy
- JSEE总结(一)——JNDI
- Android自定义控件View(三)组合控件
- 第十三周项目3-立体类族共有的抽象类
- WebLogic(12C)——安装教程
- 017_04Canvas和Paint的用法
- Android Service的使用方法 音乐播放器实例
- 从cocostudio获取控件,添加回调函数
- 【VMCloud云平台】SCSM(三)与SCO集成
- ubuntu平台编译opencv 3D项目一
- Python 2.7.x 和 3.x 版本的重要区别
- api注册表操作函数
- #pragma once
- 查看文件系统类型的Linux命令
- 截图和压缩图片
- TestNg的IReporter接口的使用
- 南大莫砺锋教授结婚三十年纪念写给妻子的“赠内诗”十首