PowerDesigner16配置显示注释comment配置方法
来源:互联网 发布:lua nginx set 编辑:程序博客网 时间:2024/05/19 05:05
无论15还是16.视图中都没有直接设置显示属性字段注释的配置,因此需要通过间接的方式显示注释,操作的流程图如下
原始样式
显示操作
调出执行命令的接口
执行夏利命令
从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 sub
最终效果图如下
可以看到图1中的id列已被中文注释替换。
1 0
- PowerDesigner16配置显示注释comment配置方法
- PowerDesigner16配置显示注释comment配置方法
- PowerDesigner16配置显示注释comment配置方法
- PowerDesigner16配置显示注释comment配置方法
- PowerDesigner16配置显示注释列comment配置方法
- PowerDesigner16配置显示注释列comment配置方法
- PowerDesigner16.5快速入门显示,注释comment配置方法,以及创建sql文件过程中需要注意的一些问题
- powerdesigner16.5 列显示comment
- PowerDesigner16不显示comment列结局记录
- PowerDesigner显示Comment注释
- PowerDesigner16.5导出SQL语句时如何将name列复制到comment注释里面
- oracle使用comment注释的方法
- powerdesign16.5在ER图上显示注释comment
- PowerDesigner设计表时显示注释列Comment
- PowerDesigner设计表时显示注释列Comment
- PowerDesigner设计表时显示注释列Comment
- PowerDesigner16的破解方法
- SQL注释comment
- Verilog语法_4(Modelsim自动化仿真)
- mac装win10后快捷键失灵
- ASCII码对照表
- asp 文件下载
- poj 3169 Layout(差分约束)
- PowerDesigner16配置显示注释comment配置方法
- 四、oracle 用户管理二
- 第4周项目-1建立单链表
- Android中BitmapFactory.Options详解
- 微信应用号
- SQL坑爹的地方
- Failed to load JavaHL Library. These are the errors that were encountered
- spring Aop日志方面的应用
- 【第四周项目3-单链表应用(1)】