Exporting computed function ports

Hello, capella has a strong tooling feature as computed links

However, when I try to export input ports or incoming functional exchanges by means of get_inputs() or get_incoming(), I only get the ports or functional exchanges that are assigned to lower level functions.

Is there any smart way to get all the function ports including the computed function ports?

I think these computed links are only computed graphically, not in the semantic model, so there may be a way to get them graphically.
Stephane

If they only appears in the diagram an not in the semantic model (Capella model) you can use the following methods:

Diagram.get_represented_elements()

Will given you a list of DDiagramElement (Java objects at the moment, it may change in the future). Then you can use:

DDiagramElement.isVisible()

To know if the element is visible on the diagram.

 AbstractDNode.getOwnedBorderedNodes()

That will give you the bordered nodes, in your case ports.

 DNode.getIncomingEdges()
 DNode.getOutgoingEdges()

To get edges connected to those ports.

DDiagramElement.getTarget()

To get the semantic element (CapellaElement), you can the wrap it in the corresponding Python class if needed. If the edge is computed I’m not sure what this method will return…