Sparx EA VBScript。如何"someInformationFlow.ConveyedItems.AddNew"?
Sparx EA VBScript. How to "someInformationFlow.ConveyedItems.AddNew"?
免责声明:抱歉提出荒谬的问题。答案必须在手册中,但在文档中找不到...
我需要将现有元素添加到 InformationFlow 连接器。
dim theConnertor as EA.Connector
set theConnector = ...
...
theConnector.ConveyedItems.AddNew name, type
...
我应该将元素的哪些参数传递给函数 AddNew
,而不是 name
和 type
?
引用帮助:
To add another element to the conveyed Collection, use 'AddNew (ElementGUID,NULL)', where 'ElementGUID' is the GUID of the element to be added.
编辑:根据@Grigorio 的评论,VB 的语法是
AddNew(ElementGUID, "")
免责声明:抱歉提出荒谬的问题。答案必须在手册中,但在文档中找不到...
我需要将现有元素添加到 InformationFlow 连接器。
dim theConnertor as EA.Connector
set theConnector = ...
...
theConnector.ConveyedItems.AddNew name, type
...
我应该将元素的哪些参数传递给函数 AddNew
,而不是 name
和 type
?
引用帮助:
To add another element to the conveyed Collection, use 'AddNew (ElementGUID,NULL)', where 'ElementGUID' is the GUID of the element to be added.
编辑:根据@Grigorio 的评论,VB 的语法是
AddNew(ElementGUID, "")