PowerDesigner Comment和name相互转化
来源:互联网 发布:木工制图软件 编辑:程序博客网 时间:2024/06/04 19:09
感谢:
http://blog.csdn.net/laolaowhn/article/details/4427928
存档资料使用
name到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 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
comment到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 next Dim 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 subPowerDesigner->Tools->Execute Commands->Edit/Run Scripts执行脚本
0 0
- PowerDesigner Comment和name相互转化
- PowerDesigner Name和Comment 互相转化问题
- PowerDesigner comment与name相互复制
- PowerDesigner Comment写到name 和name写到Comment
- powerdesigner comment 写到 name 和 name 写到 comment
- PowerDesigner中name和comment互換
- PowerDesigner表的name和comment互转
- PowerDesigner中name和comment互換
- PowerDesigner中name和comment互換
- PowerDesigner中name和comment互換
- PowerDesigner中name和comment互換
- PowerDesigner--comment和name互相复制
- PowerDesigner中name和comment互换
- PowerDesigner设计Name和Comment 替换
- PowerDesigner中name和comment互换
- powerdesigner中name和comment转换
- PowerDesigner Comment与name的相互装换
- PowerDesigner 把Comment写到name中 和把name写到Comment中
- C语言编程 运算符的优先级表
- linux下计算进程cpu使用率和内存使用率的方法
- Effective C++ --4 设计与声明
- python调用Mongodb笔记
- Ember.js 的初学者指南
- PowerDesigner Comment和name相互转化
- jquery-ui-autocomplete的使用
- 【逆向】查看按钮事件与判断跳转的小技巧
- UVALive - 4727 Jump
- 1532 Drainage Ditches (网络流入门)
- Android Bitmap和Canvas学习笔记
- 纯c实现ArrayList
- ubuntu如何分区
- mysqli 预处理语句(prepared)