当前位置:网站首页>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
边栏推荐
- 面试题篇一
- 新增订单如何防止重复提交
- 安装sharp报错
- 微信小程序 navigator点击后有阴影 ,去掉navigator阴影效果
- Regular expression =regex=regular expression
- 703. The k-th element in the data flow
- Botu V16 obtains the system time and converts it into a string
- [exercise] HashSet
- Linux下安装Redis,并配置环境
- Process steps of vibrating wire acquisition module for measuring vibrating wire sensor
猜你喜欢

GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速

Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results

类加载机制

optaplanner学习笔记(一)案例Cloud balance

GC垃圾回收

wireshark报文分析tcp,ftp

解决VSCode下载慢或下载失败的问题

自定义插入页面标签以及实现类似通讯录的首字母搜索

Introduction and installation of crunch, and making password dictionary with crunch

The key to the success of digital transformation enterprises is to create value with data
随机推荐
[Mori city] random talk on GIS data (I)
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
音频编解码基础知识
After studying 11 kinds of real-time chat software, I found that they all have these functions
Wechat applet realizes keyword highlighting
对象的创建
利用win7漏洞进行系统登录密码破解
February 15, 2022: sweeping robot. There is a floor sweeping robot in the room (represented by a grid). Each grid in the grid has two possibilities: empty and obstacles. The sweeping robot provides fo
面试题 16.16. 部分排序-双指针法
振弦采集模块测量振弦传感器的流程步骤
Image acquisition and playback of coaxpress high speed camera based on pxie interface
ffmpeg 错误码
Thesis reading [distinctive late semantic graph for video capturing]
Technology T3 domestic platform! Successfully equipped with "Yihui domestic real-time system sylixos"
[SQL optimization] the difference between with as and temporary tables
Battery simulation of gazebo robot
Collation of open source protocols of open source frameworks commonly used in Web Development
Ffmpeg error code
科技T3国产平台!成功搭载“翼辉国产实时系统SylixOS”
GetMessage底层机制分析