Book a Demo

Author Topic: LayoutDiagramEx parameters  (Read 4086 times)

gtsoftware

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
LayoutDiagramEx parameters
« on: April 11, 2006, 04:21:04 am »
I'd like to use the LayoutDiagramEx method to arrange classes in a diagram. Can someone point me in the direction of the values needed to use it?

I searched and found the deprecated version but not the values for the new version.

http://
http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=Automation;action=display;num=1080638173;start=17#17


Thanks

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: LayoutDiagramEx parameters
« Reply #1 on: April 11, 2006, 05:13:27 am »
Check out the user manual under the Project Interface / Project section of the Automation and Scripting / Automation Interface / Reference.

I am using the manual from build 789. In the .pdf file it is page 1204 (the numeral on the page) or 1233 of 1362 at the bottom of the adobe reader screen.

The documentation is not too much help, but nor is it for what these variables mean when you are doing layout by hand. Still, you shold be able to manipulate all the layout settings via this function in the same way as you could by hand.

I'm sorry to say that all the usual cautions apply, and you'll have to do some experimentation. Still, I can often get a reasonable first cut at a 'reasonable' layout on small diagrams. At least it gives users something to work with.

I don't think the recent capability to layout only selected elements has made it through to this interface. However, you could try selecting some elements via automation and calling the function. If you do try that and it works, please let me know on this thread.

David
No, you can't have it!