- Option Explicit
- ValidationMode = True
- InteractiveMode = im_Batch
- Dim mdl
- 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)
- Dim Tab
- for each Tab in folder.tables
- if not tab.isShortcut then
- if (not isnull(tab.code)) and (trim(tab.code)<>"") then
- tab.name = tab.code + " : " + tab.comment
- end if
- On Error Resume Next
- Dim col
- for each col in tab.columns
- if (not isnull(col.name)) and (trim(col.name)<>"") then
- col.code= col.name
- end if
- if (not isnull(col.comment)) and (trim(col.comment)<>"") then
- col.name= col.name +" : "+col.comment
- end if
- On Error Resume Next
- next
- end if
- next
- end sub
PowerDesinger 从数据库中依赖反转出来的PDM修改。修改显示名字 将注释加到PDM工程
最新推荐文章于 2020-03-24 15:08:02 发布