Book a Demo

Author Topic: Auto layout for diagram  (Read 8043 times)

Knut Jetlund

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I am the lizard king. I can do anything
    • View Profile
Auto layout for diagram
« on: April 15, 2009, 11:13:56 pm »
I've created a VBA project for converting a Feature catalog modelled in Microsoft Access to Enteprise Architect. Everything seems to work perfect, except for one thing: I would like to use the auto layout function on my diagrams (I have a lot of them!). Is it possible to reach this function from the automation interface?

regards
Knut Jetlund
Knut Jetlund
Norwegian Public Roads Administration

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Auto layout for diagram
« Reply #1 on: April 15, 2009, 11:32:38 pm »
Try Project.LayoutDiagramEx

Knut Jetlund

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I am the lizard king. I can do anything
    • View Profile
Re: Auto layout for diagram
« Reply #2 on: April 16, 2009, 09:33:27 pm »
Thanks. It  seems to work for most of the diagrams, but for some reason not for some others. I dont't quite understand the different parameters for the method, do you have any experiences with this?
Knut Jetlund
Norwegian Public Roads Administration

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Auto layout for diagram
« Reply #3 on: April 16, 2009, 10:00:47 pm »
No, sorry, no experience. I just remembered seeing that function in the documentation.

kosh.iii

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Auto layout for diagram
« Reply #4 on: April 30, 2009, 09:54:36 pm »
Does anyone know how I can combine multiple diagram layout settings like DFS + Up Direction + Naive Initialization?

Is it simply adding up the long values? There's nothing about it in the SDK documentation.
« Last Edit: April 30, 2009, 10:07:03 pm by kosh.iii »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Auto layout for diagram
« Reply #5 on: April 30, 2009, 10:16:30 pm »
Nope, at least not directly.

Try creating a variable and setting it to the total (or binary OR) of the options you need. Pass that variable each time you want that option combination.
No, you can't have it!