当前位置:网站首页>Power Designer - Custom Comment button
Power Designer - Custom Comment button
2022-06-26 13:01:00 【iiaythi】
power designer - Custom Comment button
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
Save as comment.vbs
Create custom buttons
tools -> execute command -> customize command
So you can do it tools Here is the custom button we added , You don't need to execute it after each selection 
good luck!!
边栏推荐
- postgis 地理化函数
- 复制多个excel然后命名不同的名字
- PHP returns false when calling redis method decrby less than 0
- 深入解析 MySQL binlog
- 7-2 大盗阿福
- JS how to judge when data contains integer and floating-point types. Floating-point decimals retain two digits after the decimal point
- Redis learning - 04 persistence
- Echart堆叠柱状图:色块之间添加白色间距效果设置
- find及du -sh显示权限不够的解决方法
- National standard gb28181 protocol easygbs cascaded universal vision platform, how to deal with live message 403?
猜你喜欢

Tiger Dao VC products are officially launched, a powerful supplement to seektiger ecology

软件测试 - 基础篇

使用SSH密钥对登陆服务器

栈,后入先出
![Vivado 错误代码 [DRC PDCN-2721] 解决](/img/de/ce1a72f072254ae227fdcb307641a2.png)
Vivado 错误代码 [DRC PDCN-2721] 解决

How does easygbs solve the abnormal use of intercom function?

NoSQL mongodb - 02 mongodb server installation, mongodb shell, basic concepts and visualization tools

计组实践实验9——使用CMStudio设计基于分段模型机微程序指令(2)

老司机总结的12条 SQL 优化方案(非常实用)

Tiger Dao VC products are officially launched, a powerful supplement to seektiger ecology
随机推荐
Nodejs framework express and KOA
processing 随机生成线动画
solo 博客系统的 rss 渲染失败
洛谷P3426 [POI2005]SZA-Template 题解
Implementing mixins scheme in applet
postgis 地理化函数
轻流完成与「DaoCloud Enterprise 云原生应用云平台」兼容性认证
Photoshop 2022 23.4.1增加了哪些功能?有知道的吗
Installing MySQL under Linux (RPM package installation)
简易数字电路交通灯设计
Less than 40 lines of code to create a blocprovider
Openlayers drawing dynamic migration lines and curves
Processing 多面体变化
Echart堆叠柱状图:色块之间添加白色间距效果设置
面试题积累
Goto statement to realize shutdown applet
栈,后入先出
C# const详解:C#常量的定义和使用
Ubuntu安装配置PostgreSQL(18.04)
opencv高速下载