Scripting 编写企业架构师脚本:更改元素隔间可见性

Scripting 编写企业架构师脚本:更改元素隔间可见性,scripting,enterprise-architect,Scripting,Enterprise Architect,是否可以更改脚本中元素注释的可见性?即,在脚本中执行与[Ctrl-Shift-Y]-[Show notes]相同的操作?是,但不是直接执行 style = oldStyle + "Notes=100;" Repository.Execute("UPDATE t_diagramobjects SET ObjectStyle=" + style + " WHERE InstanceID=" + instanceId) 假设您拥有要更改的图表对象的instanceId。另外,oldStyle具有当前

是否可以更改脚本中元素注释的可见性?即,在脚本中执行与[Ctrl-Shift-Y]-[Show notes]相同的操作?

是,但不是直接执行

style = oldStyle + "Notes=100;"
Repository.Execute("UPDATE t_diagramobjects SET ObjectStyle=" + style + " WHERE InstanceID=" + instanceId)
假设您拥有要更改的图表对象的
instanceId
。另外,
oldStyle
具有当前内容
ObjectStyle
,它以分号结尾,并且不包含“Notes=;”字符串