Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Geert Bellekens on April 20, 2015, 09:08:14 pm

Title: Re: Updating sterotype of Connector
Post by: Geert Bellekens on April 20, 2015, 09:08:14 pm
If you use Connector.Ster[highlight]e[/highlight]otype it should work I guess.

Geert
Title: Re: Updating sterotype of Connector
Post by: Adam105 on April 20, 2015, 09:27:43 pm
Thanks for the quick response. Firstly, that was stupid of me, awful speller haha. Secondly, it now displays two types within my diagrams such as;

<<Need, dependsOn>>

It displays the correct properties if I look within the properties window of the the field.


EDIT: Must have accidently deleted first post.  I am looking to update the sterotype field of a connector using a script, by importing a tab delimited file. Works correctly in the following format for Direction, Notes and Alias.

Code: [Select]
     Connector.Direction = Direction;
      Connector.Notes=Description;
      Connector.Alias=Alias;
      Connector.Stereotype=Relationship;
Title: Re: Updating sterotype of Connector
Post by: Geert Bellekens on April 20, 2015, 11:02:20 pm
There's also StereotypeEx that you can use. Check the documentation.

Geert
Title: Re: Updating sterotype of Connector
Post by: Adam105 on April 21, 2015, 09:31:55 pm
Thanks a lot, StereotypeEx works perfectly.