Book a Demo

Author Topic: Automatically layout diagram API  (Read 3815 times)

Aleksandar

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Automatically layout diagram API
« on: June 21, 2013, 08:51:10 pm »
Hi,

I know that there is a way to position the elements in a diagram manually by giving coordinates through the API, but is there a way to call the automatic positioning option in EA through the API? Just add the elements to the diagram, and then call some function?

Thanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automatically layout diagram API
« Reply #1 on: June 21, 2013, 10:54:27 pm »
Yes, somewhere in the Project Interface IIRC.

Geert

Aleksandar

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Automatically layout diagram API
« Reply #2 on: June 24, 2013, 11:16:43 pm »
Thanks Geert :)

It is in the project interface.

projectEA.LayoutDiagram(arg0, arg1);

do you know if there is somewhere a detailed description of all the functions in the API, because on the sparx website only some of them are explained, but for others there is no explanation of the way they work or the input parameters...

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Automatically layout diagram API
« Reply #3 on: June 25, 2013, 08:53:49 am »
Have you read the Automation and Scripting section of the Help file?
Best Regards, Roy

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automatically layout diagram API
« Reply #4 on: June 25, 2013, 03:38:02 pm »
It's either the help file, or the books from Thomas Kilian: https://leanpub.com/u/thomaskilian

Geert