当前位置:网站首页>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!!
边栏推荐
- Scala problem solving the problem of slow SBT Download
- KITTI Detection dataset whose format is letf_top_right_bottom to JDE normalied xc_yc_w_h
- Omnichannel membership - tmall membership 2: frequently asked questions
- 2022 edition of China's cotton chemical fiber printing and dyeing Market Status Investigation and Prospect Forecast Analysis Report
- Ad - update the modified PCB package to the current PCB
- Demand scale forecast and investment competitiveness analysis report of China's new material market 2022-2028
- The best CMDB system
- TP5 thinkphp5 report serialization of'closure'is not allowed
- PHP get directory size
- 7-2 数的三次方根
猜你喜欢

Laravel+gatewayworker completes the im instant messaging and file transfer functions (Chapter 4: server debugging errors)

Xiaolong 888 was released, Xiaomi 11 was launched, and 14 manufacturers carried it in the first batch!

Several methods added to the ES6 array (foreach, filter, some, every. Includes, reduce)

PHP laravel+gatewayworker completes im instant messaging and file transfer (Chapter 1: basic configuration)

Realize microservice load balancing (ribbon)

Ctrip ticket app KMM cross end kV repository mmkv kotlin | open source

"Pinduoduo and short video speed version", how can I roast!

环形队列php

Scala-day03- operators and loop control

TSMC Samsung will mass produce 3nm chips in 2022: will the iPhone be the first?
随机推荐
Scala-day03- operators and loop control
Investment planning and forecast report on the future direction of China's smart agriculture during the 14th five year plan (2022)
CG bone animation
7-1 n皇后问题
Generate JDE dot train
Analysis report on the "fourteenth five year plan" and investment prospect of China's pharmaceutical equipment industry 2022-2028
Leetcode 78. Subset and 90 Subset II
Common problems and Thoughts on member operation management
One click deployment CEPH script
Fengshentai old shooting range Kali series
24 database interview questions that must be mastered!
I'd like to know what preferential activities are available for stock account opening? Is it safe to open an account online?
How do consumer goods enterprises formulate membership interests?
This executeQuery (SQL) cannot compile classes for JSP. What is the reason?
UDP protocol details [easy to understand]
Precautions for opening a securities account is it safe to open an account
"Pinduoduo and short video speed version", how can I roast!
4. N queen problem
TSMC Samsung will mass produce 3nm chips in 2022: will the iPhone be the first?
菜鸟实战UML——活动图