EA.Element 属性 无法设置 CompositeDiagram

EA.Element Property CompositeDiagram cannot be set

当我尝试使用 VBScript

修改 属性
dim cd as EA.Diagram
...
set currentElement.CompositeDiagram=cd

我得到'Unable to write read-only property'

但是 EA 为何能够通过图表视图中的元素上下文菜单对其进行设置 "New Child Diagram->Select Composite Diagram"...

或者换句话说,有人知道如何设置元素的组合图吗?

你不能在属性中设置组合图。

改为使用 SetCompositeDiagram 操作。

Parameters: • String - the GUID of the composite diagram.

参考EA Online Help了解更多。