当前位置:网站首页>Power Designer - Custom Comment button
Power Designer - Custom Comment button
2022-06-26 13:01:00 【iiaythi】
power designer - Custom Comment button
VB script
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim blankStr
blankStr = Space(1)
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 = "" or replace(col.comment," ", "")="" Then
col.name = blankStr
blankStr = blankStr & Space(1)
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
Save as comment.vbs
Create custom buttons
tools -> execute command -> customize command
So you can do it tools Here is the custom button we added , You don't need to execute it after each selection 
good luck!!
边栏推荐
- solo 博客系统的 rss 渲染失败
- KVM video card transparent transmission -- the road of building a dream
- ES6模块
- [esp32-C3][RT-THREAD] 基于ESP32C3运行RT-THREAD bsp最小系统
- 710. random numbers in the blacklist
- 7-1 n皇后问题
- 由错误<note: candidate expects 1 argument, 0 provided>引发的思考
- 不到40行代码手撸一个BlocProvider
- Generate JDE dot train
- Installing MySQL under Linux (RPM package installation)
猜你喜欢
随机推荐
ES6:Map
National standard gb28181 protocol easygbs cascaded universal vision platform, how to deal with live message 403?
Go 结构体方法
Stream流学习记录
第01章_Linux下MySQL的安装与使用
国标GB28181协议EasyGBS视频平台TCP主动模式拉流异常情况修复
PHP calculates excel coordinate values, starting with subscript 0
[极客大挑战 2019]RCE ME 1
goto语句实现关机小程序
[esp32-C3][RT-THREAD] 基于ESP32C3运行RT-THREAD bsp最小系统
Splunk iowait 报警的解决
ES6:迭代器
Nodejs get get/post request parameters
7-2 大盗阿福
EasyGBS如何解决对讲功能使用异常?
sqlalchemy event listen Automatic generate CRUD excel
7-2 数的三次方根
postgis计算角度
详细讲解C语言11(C语言系列)
Processing 多面体变化



![[极客大挑战 2019]RCE ME 1](/img/66/e135f7e5a7cbdeb5b697f3939a3402.png)



![Vivado 错误代码 [DRC PDCN-2721] 解决](/img/de/ce1a72f072254ae227fdcb307641a2.png)

