当前位置:网站首页>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!!
边栏推荐
- JS get the current screen height method and listen for DOM elements to enter the viewport
- Leetcode 78. Subset and 90 Subset II
- 简易数字电路交通灯设计
- [graduation season · advanced technology Er] I remember the year after graduation
- imagecopymerge
- PHP generate order number
- Five trends of member management in 2022
- 栈,后入先出
- How can we reach members more effectively?
- Jsonarray and jsonobject of fastjson [easy to understand]
猜你喜欢

Laravel subdomain accesses different routing files and different modules

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

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

Spark-day02-core programming-rdd

Vscode solves the problem of Chinese garbled code

小程序中控件里面的内容较多,让其支持滚动的良好方案

Fengshentai old shooting range Kali series

Spark-day01- get started quickly
The loss of female scientists

Ctrip ticket app KMM cross end kV repository mmkv kotlin | open source
随机推荐
Rookie practical UML - activity diagram
Hello! Forward proxy!
Analysis report on dynamic research and investment planning suggestions of China's laser medical market in 2022
JS how to judge when data contains integer and floating-point types. Floating-point decimals retain two digits after the decimal point
Research on the current situation of China's modified engineering plastics market and demand forecast analysis report 2022-2028
Investment planning and forecast report on the future direction of China's smart agriculture during the 14th five year plan (2022)
Configuring Apache digest authentication
Precautions for opening a securities account is it safe to open an account
Iframe usage and contentwindow, parent and PostMessage communication methods
redis通过6379端口无法连接服务器
Wechat applet wx Request request encapsulation
2021 q3-q4 investigation report on the use status of kotlin multiplatform
2016年四川省TI杯电子设计竞赛B题
2022 edition of investment analysis and "fourteenth five year plan" development prospect forecast report of China's switchgear industry
JS get the current screen height method and listen for DOM elements to enter the viewport
Realize microservice load balancing (ribbon)
Laravel uses find_ IN_ The set() native MySQL statement accurately queries whether a special string exists in the specified string to solve the problem that like cannot be accurately matched. (resolve
Scala-day03- operators and loop control
Learning directory
One click deployment CEPH script