Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Guillaume on June 27, 2022, 05:20:32 pm

Title: SysML Port direction custom colour with a legend or shapescript?
Post by: Guillaume on June 27, 2022, 05:20:32 pm
Hi,

I'm looking for a solution to dynamically change a SysML block or part's port colour based on the direction (arrow). A block that contains an input flow property is set as the classifier for these ports. Depending on the isConjugated property, the arrow on the port is either rendered as an input or output.
I'd like to dynamically change the ports colour to separate inputs from outputs.
So far I haven't found this information stored anywhere on the element itself e.g. to work with a dynamic legend, or with a shapescript if I stereotype the ports.

The only solution involves using the new EA16 scriptlets but this is not ideal.

Any suggestion ?