Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Lars H on April 25, 2008, 09:22:35 pm
-
Hi,
I want to auto layout diagrams via the Java API, but the documented ConstLayoutStyles enum is not available in Java. Does anyone know the corresponding integer values I can use?
/Lars
-
(http://www1.picturepush.com/photo/a/627979/img/Anonymous/constLayoutStyles.png)
This is what i get from querying it in .Net. I'm not quite sure how valid these are, in particular for the java API
-
What API call are you going to use for laying out a diagram? I haven't see any indication of such an API call in the documentation.
-
Project.LayoutDiagramEx
-
Thanks, David. I hadn't looked deep enough.
Allan
-
No problem Allan,
There's a lot there, and you kind of have to get used to what's (likely to be) in Repository versus Project. At least they are alphabetical, but that won't help you the first time you look for something you don't already have a name for.
David
-
It works. Thanks a lot!
/Lars