PowerDesigner 将code值赋给name列
来源:互联网 发布:linux终端退出服务器 编辑:程序博客网 时间:2024/05/23 09:45
打开powerdesigner --> Tools --> Excute commands --> Edit/Run Script
然后运行如下代码(PowerDesigner 将code值赋给name列)
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)
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
tab.name = tab.code
Dim col 'running column
for each col in tab.columns
col.name= col.code
next
end if
next
Dim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.name = view.code
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 将name值赋给comment列)
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)
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
- PowerDesigner 将code值赋给name列
- PowerDesigner中Name的值赋给Comment
- PowerDesigner Code和Name
- 将一个例如'10.34 a'的值赋给一个数字列。尾部的无用信息将被剥离
- PowerDesigner里面将表中name列值复制到comment列
- PowerDesigner Code Name 同步修改
- PowerDesigner Name/Code自动调整
- PowerDesigner Name/Code自动调整
- PowerDesigner Name/Code自动调整
- POWERDESIGNER name code 取消联动
- PowerDesigner Name首字母生成Code
- 取消powerdesigner name code 同步
- Mysql 将表结构导入 Powerdesigner ,并将注释作为 name 列
- powerdesigner设置不主动按照name填充code值
- PowerDesigner设置为不自动根据name填充code值
- powerdesigner将PDM转换到OOM时,code与name同时同步转换
- 将Select的值直接赋给Input
- 将Select的值赋给两个Input
- 读取ini
- 动手安装centOS6
- Android 快速开发框架 ThinkAndroid
- 《UNIX环境高级编程》笔记--会话
- HALOCN运算功能函数快查
- PowerDesigner 将code值赋给name列
- (copy)Asp.net中服务端控件事件是如何触发的
- 怎样运行地理处理工具 Geoprocessing & Geoprocessor & IGPProcess
- win2003远程终端服务激活
- HTTP中Get与Post的区别
- iOS 基础-----关于UIView 的 frame 与 bounds
- 为有数据的表加入id主健的方法
- ios --- block 内存管理 解决循环调用 学习
- Oracle编辑SQL语句(多次重复语句输入时简化)