Author Topic: Defaut position of a port with AddNew  (Read 3798 times)

Wolverine57

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Defaut position of a port with AddNew
« 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.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Defaut position of a port with AddNew
« Reply #1 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 for a Perl script which is doing so.

q

Wolverine57

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Defaut position of a port with AddNew
« Reply #2 on: November 22, 2010, 06:23:00 pm »
In fact with
AddNew("l=300;t=320;","Port");
for example it works