*****************************************************************************
文件:set color of entities shortcut.vbs
版本:1.0
版权:floodzhu( floodzhu@hotmail.com ),2005.1.6
功能:遍历概念模型,把entities的快捷方式的颜色设置为黄色。
*****************************************************************************
dim fs,f
set fs = createobject(“scripting.filesystemobject”)
set f = fs.createtextfile(“c:\powerdesigner_vbs.log”)
dim index
index = 0
dim model
set model = activemodel
if (model is nothing) then
msgbox “当前没有活动的模型。”
elseif not model.iskindof(pdcdm.cls_model) then
msgbox “当前模型不是概念模型。”
else
view model
msgbox index & “个实体的快捷方式的颜色被设置。”
end if
*****************************************************************************
函数:view
功能:递归遍历
*****************************************************************************
sub view(folder)
dim node
for each node in folder.entities
if node.isshortcut then
visit node
end if
next
对子目录进行递归
dim subfolder
for each subfolder in folder.packages
view subfolder
next
end sub
*****************************************************************************
函数:visit
功能:处理节点
*****************************************************************************
sub visit(node)
dim sym
for each sym in node.symbols
sym.fillcolor = rgb(255, 255, 128)
index = index + 1
f.writeline sym.name & ” ● ” & sym.fillcolor
next
end sub
PowerDesigner脚本:设置实体快捷方式的颜色-数据库专栏,SQL Server
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » PowerDesigner脚本:设置实体快捷方式的颜色-数据库专栏,SQL Server
相关推荐
-      DataGrid中的按钮反选事件与NamingContainer(命名容器)-downmoon-ASP教程,数据库相关
-      根据数据表中数据,生成Powerpoint幻灯片-ASP教程,数据库相关
-      使用用VB处理MYSQL数据库中二进制数据问题-.NET教程,VB.Net语言
-      关于DataGridView中如何接收处于编辑状态下的当前信息-ASP教程,数据库相关
-      ActiveMQ4.1+Spring2.0的POJO JMS方案(上)-.NET教程,数据库应用
-      ASP.NET 2.0中直接将Access数据库导入到Excel文件中-.NET教程,Asp.Net开发
-      DataGrid的多行提交-.NET教程,数据库应用
-      一个简单的asp数据库操作类-ASP教程,数据库相关
