Get component in the ES diagram


how to get the component(passenger,aircraft,ife system) in the ES diagram?
How to delete the duplicated results?

You can get the represented elements and filter InstanceRole:

myESDiagram.representationElements.target->filter(interaction::InstanceRole)->asSet()
1 Like