【发布时间】:2021-07-29 20:42:44
【问题描述】:
在我的 Capella 项目中,我想只选择系统组件的第一级,而不是所有子组件。
我试试这个:
self.eAllContents (la::LogicalComponent).eContents (la::LogicalComponent)
但它在我系统的第一级组件之前选择,然后还选择第一级组件的所有子系统,我不想要这个。
我该怎么办?
非常感谢
【问题讨论】:
标签: m2doc
在我的 Capella 项目中,我想只选择系统组件的第一级,而不是所有子组件。
我试试这个:
self.eAllContents (la::LogicalComponent).eContents (la::LogicalComponent)
但它在我系统的第一级组件之前选择,然后还选择第一级组件的所有子系统,我不想要这个。
我该怎么办?
非常感谢
【问题讨论】:
标签: m2doc
在这种情况下,您可能希望使用更具体的表达式:
selection.ownedArchitectures->filter(la::LogicalArchitecture).ownedLogicalComponentPkg.ownedLogicalComponents
这将列出根LogicalComponentPkg中的所有LogicalComponent。
【讨论】: