当前位置:网站首页>PowerDesigner design name and comment replacement
PowerDesigner design name and comment replacement
2022-07-01 19:47:00 【Mischief 1124】
comment It's a comment .name Is the field description
stay PowerDesigner The operation is as follows
PowerDesigner-->Tools-->Execute Commands-->Edit/Run Scripts Next execution OK 了 .
hold comment Cover name The method is as follows :
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)
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
take name Cover comment The method is as follows
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
' 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
边栏推荐
- 大厂音视频职位面试题目--今日头条
- 1592 例题1 国王(Sgu223 LOJ10170 LUOGU1896 提高+/省选-) 暴力思考 状压DP 01背包
- 振弦采集模块测量振弦传感器的流程步骤
- JVM内存模型
- Time series analysis using kibana timelion
- 较真儿学源码系列-InheritableThreadLocal(逐行源码带你分析作者思路)
- DS Transunet:用于医学图像分割的双Swin-Transformer U-Net
- [SQL optimization] the difference between with as and temporary tables
- 703. The k-th element in the data flow
- 118. 杨辉三角
猜你喜欢

安装sharp报错

为定时器和延时器等其它情况的回调函数绑定当前作用域的this

毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?

What is the essential difference between Bi development and report development?

JS 之 常用内置类的使用

Regular expression =regex=regular expression

Actual combat of flutter - fast implementation of audio and video call application

ModSim基本使用(Modbus模拟器)

Why has instagram changed from a content sharing platform to a marketing tool? How do independent sellers use this tool?

DTD modeling
随机推荐
MySQl的基本使用
Axure does not display catalogs
optaplanner学习笔记(一)案例Cloud balance
安装sharp报错
Linux下安装Redis,并配置环境
[research materials] national second-hand housing market monthly report January 2022 - Download attached
Shell advanced
[untitled]
Compile ffmpeg source code with msys+vs2019 under win10
After studying 11 kinds of real-time chat software, I found that they all have these functions
win10下使用msys+vs2019编译ffmpeg源码
DDR4 test-2
ffmpeg 错误码
一个程序员如何快速成长
JS的Proxy
H264编码profile & level控制
js三元表达式复杂条件判断
Use the uni app demo provided by Huanxin to quickly realize one-on-one chat
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
Interview question 16.16 Partial sorting - Double finger needling