当前位置:网站首页>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!!
边栏推荐
- Laravel+gatewayworker completes the im instant messaging and file transfer functions (Chapter 4: server debugging errors)
- Encapsulate request request of uni app
- PHP calculates excel coordinate values, starting with subscript 0
- Common problems and Thoughts on member operation management
- Xiaolong 888 was released, Xiaomi 11 was launched, and 14 manufacturers carried it in the first batch!
- Spark-day02-core programming-rdd
- Cross platform members get through the two channels of brand Ren Du
- 2022 edition of China's cotton chemical fiber printing and dyeing Market Status Investigation and Prospect Forecast Analysis Report
- [probability theory] conditional probability, Bayesian formula, correlation coefficient, central limit theorem, parameter estimation, hypothesis test
- 栈,后入先出
猜你喜欢

Spark-day01- get started quickly

Build Pikachu shooting range and introduction

关于NaN的一些总结

Php+laravel5.7 use Alibaba oss+ Alibaba media to process and upload image / video files

JMeter response time and TPS listener tutorial

SQL injection in Pikachu shooting range

Ad - update the modified PCB package to the current PCB

Vscode solves the problem of Chinese garbled code

2、 MySQL Foundation

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)
7-3 最低通行费
Lintcode 130 · stacking
2022 edition of China's cotton chemical fiber printing and dyeing Market Status Investigation and Prospect Forecast Analysis Report
A most practical arbitrage wizard EA [2022 modified version]
详细实操分享,下班刷了两小时的搞笑视频,一个月收益7000多
Scala-day06- pattern matching - Generic
Five trends of member marketing of consumer goods enterprises in the future
Comparison of latest mobile phone processors in 2020 (with mobile phone CPU ladder diagram)
Iframe usage and contentwindow, parent and PostMessage communication methods
"Pinduoduo and short video speed version", how can I roast!
New routing file in laravel framework
初探Protostuff的使用[通俗易懂]
Redis cannot connect to the server through port 6379
Php+laravel5.7 use Alibaba oss+ Alibaba media to process and upload image / video files
JS get the current screen height method and listen for DOM elements to enter the viewport
JMeter response time and TPS listener tutorial
CG bone animation
Vulnerability scanning and reverse osmosis of Internet anti artifact