当前位置:网站首页>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!!
边栏推荐
- Lodash common methods (filtering, anti shake...)
- 洛谷P3426 [POI2005]SZA-Template 题解
- Consumer goods enterprises, four pain points of member marketing
- Polarismesh series articles - concept series (I)
- 【毕业季·进击的技术er】忆毕业一年有感
- PHP uses laravel pay component to quickly access wechat jsapi payment (wechat official account payment)
- Investment planning and forecast report on the future direction of China's smart agriculture during the 14th five year plan (2022)
- dried food! Yiwen will show you SD card, TF card and SIM card!
- 一个初级多线程服务器模型
- One click deployment CEPH script
猜你喜欢

Configuring Apache digest authentication

Scala-day02- variables and data types

【概率论】条件概率、贝叶斯公式、相关系数、中心极限定理、参数估计、假设检验

dried food! Yiwen will show you SD card, TF card and SIM card!
![[solved] laravel completes the scheduled job task (delayed distribution task) [execute a user-defined task at a specified time]](/img/13/c2c63333a9e5ac08b339449ea17654.jpg)
[solved] laravel completes the scheduled job task (delayed distribution task) [execute a user-defined task at a specified time]

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

Spark-day01- get started quickly

Realize microservice load balancing (ribbon)

Implementing mixins scheme in applet

JS get the current screen height method and listen for DOM elements to enter the viewport
随机推荐
洛谷P3426 [POI2005]SZA-Template 题解
Oracle锁表查询和解锁方法
What should I do from member labels to portraits?
1、 MySQL introduction
Wechat applet wx Request request encapsulation
7-2 大盗阿福
一个初级多线程服务器模型
7-16 货币系统Ⅰ
PHP laravel+gatewayworker completes im instant messaging and file transfer (Chapter 1: basic configuration)
Five trends of member management in 2022
详细实操分享,下班刷了两小时的搞笑视频,一个月收益7000多
Analysis report on dynamic research and investment planning suggestions of China's laser medical market in 2022
请指教同花顺是什么软件?在线开户安全么?
2022 edition of investment analysis and "fourteenth five year plan" development prospect forecast report of China's switchgear industry
Assembly language (7) operation instruction
Function collapse and expansion shortcut keys in vscode (latest and correct)
What are the top ten securities companies? Is it safe to open a mobile account?
Comparison of latest mobile phone processors in 2020 (with mobile phone CPU ladder diagram)
imagecopymerge
Scala-day06- pattern matching - Generic