powerdesign中表的name和comment互换
来源:互联网 发布:ibm人工智能 鲍勃迪伦 编辑:程序博客网 时间:2024/06/17 08:25
1 PowerDesigner中批量根据对象的name生成comment的脚本
执行方法:Open PDM -- Tools -- Execute Commands -- Run Script
Option ExplicitValidationMode = TrueInteractiveMode = im_BatchDim mdl 'the current model'get the current active modelSet mdl = ActiveModelIf (mdl Is Nothing) ThenMsgBox "There is no current Model"ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) ThenMsgBox "The current model is not an Physical Data model."ElseProcessFolder mdlEnd If'This routine copy name into code for each table, each column and each view'of the current folderPrivate sub ProcessFolder(folder)Dim Tab 'running tablefor each Tab in folder.tablesif not tab.isShortcut thentab.comment = tab.nameDim col 'running columnfor each col in tab.columnscol.comment= col.namenextend ifnextDim view 'running viewfor each view in folder.Viewsif not view.isShortcut thenview.comment = view.nameend ifnext'go into the sub-packagesDim f 'running folderFor Each f In folder.Packagesif not f.IsShortcut thenProcessFolder fend ifNextend sub
2 PowerDesigner中逆向工程将数据库中comment脚本赋值到PDM的name
执行方法:Open PDM -- Tools -- Execute Commands -- Run Script
Option ExplicitValidationMode = TrueInteractiveMode = im_BatchDim mdl 'the current model'get the current active modelSet mdl = ActiveModelIf (mdl Is Nothing) ThenMsgBox "There is no current Model"ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) ThenMsgBox "The current model is not an Physical Data model."ElseProcessFolder mdlEnd If'This routine copy name into code for each table, each column and each view'of the current folderPrivate sub ProcessFolder(folder)Dim Tab 'running tablefor each Tab in folder.tablesif not tab.isShortcut thenif len(tab.comment) <> 0 thentab.name = tab.commentend ifOn Error Resume NextDim col 'running columnfor each col in tab.columnsif len(col.comment) <>0 thencol.name =col.commentend ifOn Error Resume Nextnextend ifnextend sub
0 0
- powerdesign中表的name和comment互换
- PowerDesigner中name和comment互换
- PowerDesigner中name和comment互换
- PowerDesigner 数据库逆向工程,建name和comment 互换
- PowerDesigner 将Comment与Name内容互换
- SQL语句操作数据库中表和字段的COMMENT值
- PowerDesigner表的name和comment互转
- PowerDesigner 中Comment与name内容互换COPY
- PowerDesigner Comment写到name 和name写到Comment
- powerdesigner comment 写到 name 和 name 写到 comment
- PowerDesigner中NAME和COMMENT的互相转换
- PowerDesigner中NAME和COMMENT的互相转换
- PowerDesigner15的PDM中表图显示NAME和CODE
- mysql:SQL语句操作数据库中表和字段的COMMENT值
- mysql:SQL语句操作数据库中表和字段的comment值
- MYSQL:SQL语句操作数据库中表和字段的COMMENT值
- PowerDesigner 的mysql PDM 的COMMENT注释改为name+comment
- PowerDesigner中name和comment互換
- 图像处理之膨胀腐蚀操作
- 独立开发者回顾自身失败经历及其教训
- 验证码
- IOS数据库操作SQLite3使用详解
- IOS与Objective-C学习记录(一)
- powerdesign中表的name和comment互换
- POJ--3624
- android 16进制/10进制/2进制转换
- SQL server排序函数细说
- WPF控件开发之自定义控件(1)
- 定时任务,定时下载FTP指定文件
- oracle实现类似split效果
- ArcGIS for IOS 动态图层或者图层图例信息(个人)
- 推荐系统开源软件列表汇总和点评