【问题标题】:Select ONLY the first level of components in the system and nor also the sub-componets仅选择系统中的第一级组件,也不选择子组件
【发布时间】:2021-07-29 20:42:44
【问题描述】:

在我的 Capella 项目中,我想只选择系统组件的第一级,而不是所有子组件。

我试试这个:

self.eAllContents (la::LogicalComponent).eContents (la::LogicalComponent)

但它在我系统的第一级组件之前选择,然后还选择第一级组件的所有子系统,我不想要这个。

我该怎么办?

非常感谢

【问题讨论】:

    标签: m2doc


    【解决方案1】:

    在这种情况下,您可能希望使用更具体的表达式:

    selection.ownedArchitectures->filter(la::LogicalArchitecture).ownedLogicalComponentPkg.ownedLogicalComponents
    

    这将列出根LogicalComponentPkg中的所有LogicalComponent。

    【讨论】:

      猜你喜欢
      • 2016-03-16
      • 1970-01-01
      • 1970-01-01
      • 2017-05-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-28
      相关资源
      最近更新 更多