Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Urpa on September 23, 2024, 10:40:49 pm

Title: Set direction of FlowProperty in SysML 1.5
Post by: Urpa on September 23, 2024, 10:40:49 pm
Hi,
After giving up on the office mdg I am trying to create Ports, Parts and FlowProperties through VB scripting from scratch. I am using syml 1.5.
I have managed to create and set everyting but the Direction of my FlowProperty.
The FlowProperty is added straight to an <<interFaceBlock>>.
When I do it manually I can set the attribute "Direction" by selecting the FlowProperty in the Browser, opening the Flow Property dialog -> General and then going to the SysML 1.5 tab.

How do I do this by scripting?

Regards Hannah
Title: Re: Set direction of FlowProperty in SysML 1.5
Post by: Geert Bellekens on September 23, 2024, 10:57:29 pm
Hannah,

What I usually do when I don't know where a certain property is stored, is to use SQL server profiler (I work on an SQL Server database).
That allows me to see exactly which SQL statements EA is executing on the database.
From that it's usually a short jump to figure out where in the API I should be to edit this property.

There are however a few "usual suspects" for things like that

- EA.Element.TaggedValues
- EA.Element.CustomProperties
- EA.Element.StyleEx

Geert
Title: Re: Set direction of FlowProperty in SysML 1.5
Post by: qwerty on September 23, 2024, 11:22:10 pm
I used to dump the table contents of an almost empty test-DB before and after a change via a Python script and then compared these via Winmerge.

q.
Title: Re: Set direction of FlowProperty in SysML 1.5
Post by: Urpa on September 23, 2024, 11:31:44 pm
Thanks.
Managed to do it using the Tagged Values.
Regards Hannah