在我的Capella项目中,我想选择,只选择我的系统组件的第一级,而不是所有的子组件。
我试试看:
self.eAllContents (la::LogicalComponent).eContents (la::LogicalComponent)但是它在我的系统的第一级组件之前选择,然后选择第一级组件的所有子系统,我不想这样。
我该怎么做?
非常感谢
发布于 2021-05-17 07:57:46
在本例中,您可能希望使用更具体的表达式:
selection.ownedArchitectures->filter(la::LogicalArchitecture).ownedLogicalComponentPkg.ownedLogicalComponents这将列出根LogicalComponentPkg中的所有LogicalComponentPkg。
https://stackoverflow.com/questions/67436658
复制相似问题