当前位置:网站首页>power designer - 自定义注释按钮
power designer - 自定义注释按钮
2022-06-26 12:32:00 【iiaythi】
power designer - 自定义注释按钮
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
保存为 comment.vbs
创建自定义按钮
tools -> execute command -> customize command
这样就可以在 tools 下面看到我们增加的自定义按钮了,不用每次选中后再执行一下
good luck!!
边栏推荐
- 一个初级多线程服务器模型
- Microservice governance (nocas)
- Nodejs framework express and KOA
- On the use of protostaff [easy to understand]
- Cross platform members get through the two channels of brand Ren Du
- How to do well in member marketing three steps to teach you to understand member management
- 2022 edition of investment analysis and "fourteenth five year plan" development prospect forecast report of China's switchgear industry
- Is it safe to open a securities account in general
- 710. 黑名单中的随机数
- JS how to judge when data contains integer and floating-point types. Floating-point decimals retain two digits after the decimal point
猜你喜欢
Comparison of latest mobile phone processors in 2020 (with mobile phone CPU ladder diagram)
"Pinduoduo and short video speed version", how can I roast!
TSMC Samsung will mass produce 3nm chips in 2022: will the iPhone be the first?
Fengshentai old shooting range Kali series
TP5 thinkphp5 report serialization of'closure'is not allowed
Configuring Apache digest authentication
【毕业季·进击的技术er】忆毕业一年有感
[redis series] redis learning 16. Redis Dictionary (map) and its core coding structure
简易数字电路交通灯设计
小程序中控件里面的内容较多,让其支持滚动的良好方案
随机推荐
[redis series] redis learning 16. Redis Dictionary (map) and its core coding structure
Analysis report on China's photovoltaic inverter market prospect forecast and investment strategy recommendations in 2022
VMware虚拟机 桥接模式 无法上网 校园网「建议收藏」
Five strategies and suggestions of member marketing in consumer goods industry
nvm安装教程
Ubuntu安装配置PostgreSQL(18.04)
详细实操分享,下班刷了两小时的搞笑视频,一个月收益7000多
I want to know whether flush is a stock market? Is online account opening safe?
Several methods added to the ES6 array (foreach, filter, some, every. Includes, reduce)
sqlalchemy event listen Automatic generate CRUD excel
File decryption in webgame development
Consumer goods enterprises, four pain points of member marketing
我想知道,股票开户有哪些优惠活动?网上开户是否安全么?
This executeQuery (SQL) cannot compile classes for JSP. What is the reason?
小程序中控件里面的内容较多,让其支持滚动的良好方案
Cross platform members get through the two channels of brand Ren Du
Laravel subdomain accesses different routing files and different modules
What determines the rent
4. N queen problem
Examples of how laravel uses with preload (eager to load) and nested query