PowerDesigner 同步Name到Comment 及 同步 Comment 到Name
来源:互联网 发布:mac osx 游戏 编辑:程序博客网 时间:2024/06/10 11:18
- 代码一:将Name中的字符COPY至Comment中
Option Explicit
ValidationMode = True
InteractiveMode = im_BatchDim 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
nextDim 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
- 代码二:将Comment中的字符COPY至Name中
Option Explicit
ValidationMode = True
InteractiveMode = im_BatchDim 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 IfPrivate 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
nextDim 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
PowerDesigner中使用方法为:
PowerDesigner->Tools->Execute Commands->Edit/Run Scripts
- PowerDesigner 同步Name到Comment 及 同步 Comment 到Name
- PowerDesigner 同步Name到Comment 及 同步 Comment 到Name
- PowerDesigner 同步Name到Comment 及 同步 Comment 到Name
- PowerDesigner Comment写到name 和name写到Comment
- powerdesigner comment 写到 name 和 name 写到 comment
- PowerDesigner 把Comment复制到name中和把name复制到Comment
- PowerDesigner 把Comment写到name中 和把name写到Comment中
- PowerDesigner 把Comment复制到name中和把name复制到Comment .
- PowerDesigner 把Comment复制到name中和把name复制到Comment
- PowerDesigner 把Comment复制到name中和把name复制到Comment
- PowerDesigner 把Comment复制到name中和把name复制到Comment
- powerDesigner 把name项添加到注释(comment)
- PowerDesigner里面将表中name列值复制到comment列
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- 写给三年后的今天
- 细节问题
- Ubuntu 16.04 Qt5安装qtcharts
- 【问题】多个操作,同时完成或者同时不完成要怎么处理?
- 【开发效率】Chrome快捷键
- PowerDesigner 同步Name到Comment 及 同步 Comment 到Name
- 【学习】logger
- JEESZ-kafka集群安装
- 有可能出现的中文乱码
- 心跳机制
- 【学习】项目需要 Spring Boot学习
- 【问题】Could not autowire. No beans of … type found
- 【转】依赖注入(Dependency Injection)和控制反转(Inversion of Control)
- 【问题】网络电缆被拔出