Allocated components

Hello everyone, I have a problem regarding the generation of the subcomponent. My document contains the components and their allocated functions, but i have components that contain a subcomponent with an allocated function. In this situation i want to generate the document in this order :

Thank you for helping.

You need to add a loop over the sub components:

sys.eContents()->filter(cs::Component)

There is no generic way in the Capella model to get sub components of a component, you need to cast to each specific type of component and use a specific EStructuralFeature. Here I use the generic way of navigating an EMF model.

Thank you so much for helping.

1 Like