Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Wolverine57 on November 18, 2010, 07:19:50 pm

Title: Defaut position of a port with AddNew
Post by: Wolverine57 on November 18, 2010, 07:19:50 pm
Hello,

For a classe we have AddNew("l=300;r=300;t=300;b=300;","Class");

What is the equivalent for positionning a port on a class please ?

Kind regards,
W.
Title: Re: Defaut position of a port with AddNew
Post by: qwerty on November 21, 2010, 01:28:54 am
I don't know if that is possible. But you can position Ports on the diagram. See here (http://community.sparxsystems.com/resources/scripts/align-ports-and-interfaces-perl-script) for a Perl script which is doing so.

q
Title: Re: Defaut position of a port with AddNew
Post by: Wolverine57 on November 22, 2010, 06:23:00 pm
In fact with
AddNew("l=300;t=320;","Port");
for example it works