Enterprise Architect(EA):我试图使用VBScript来遍历元素的关系。我已经缩小了自定义SQL的范围。我已经在EA中的所有表上从T_ *中选择了*,但无法找到关系链接的存储位置。
答案 0 :(得分:1)
为了遍历元素的关系,你不应该使用自定义SQL,而只是迭代EA.Element.Connectors
集合
像
这样的东西option explicit
!INC Local Scripts.EAConstants-VBScript
sub main
dim package as EA.Package
set package = Repository.GetTreeSelectedPackage
dim element as EA.Element
for each element in package.Elements
dim connector as EA.Connector
for each connector in element.Connectors
Session.Output "connector type: " & connector.Type & " connector name: " & connector.Name
next
next
end sub
main
答案 1 :(得分:0)
t_connector.start_object_id
到t_connector.end_object_id
标记连接器相关的两个t_object.object_id
元素。