Author Topic: Set direction of FlowProperty in SysML 1.5  (Read 2549 times)

Urpa

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Set direction of FlowProperty in SysML 1.5
« 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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Set direction of FlowProperty in SysML 1.5
« Reply #1 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
« Last Edit: September 24, 2024, 04:33:04 am by Geert Bellekens »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Set direction of FlowProperty in SysML 1.5
« Reply #2 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.

Urpa

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Set direction of FlowProperty in SysML 1.5
« Reply #3 on: September 23, 2024, 11:31:44 pm »
Thanks.
Managed to do it using the Tagged Values.
Regards Hannah