Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: chrislro on May 27, 2025, 06:43:08 pm

Title: Scripting element interaction points "visible" property
Post by: chrislro on May 27, 2025, 06:43:08 pm
Hi,

I have scripted creation of provided and required interfaces as child elements of a component. By default in a diagram, new "interaction points" are set to not visible. I can tick the boxes (Features > Interaction Points) manually in EA, but how can I script (JScript) setting the newly created provided/required interfaces to "visible"?
Title: Re: Scripting element interaction points "visible" property
Post by: Geert Bellekens on May 27, 2025, 07:16:48 pm
You can update the diagram property that is changed when ticking the box.

I'm guessing the property will be written in the StyleEx, but it might also be Pdata

Geert
Title: Re: Scripting element interaction points "visible" property
Post by: chrislro on May 27, 2025, 07:27:54 pm
Thank you for pointing me to it. I never worked with those before, so I need to jump into this rabbit hole.