Book a Demo

Author Topic: auto layout diagram  (Read 10612 times)

Adam@Schneider

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
auto layout diagram
« on: October 24, 2014, 02:26:24 pm »
is there a way from the automation interface or within an addin to trigger the diagram auto layout?

I cant seem to see anything, I'm doing some custom importing from XML using an addin (because theres a bit more logic required than I can do in the grammar editor). As far as I can see the only things I am lacking from using the built in reverse engineering framework are auto diagram layout and merging existing items in the import (which I can handle).

Manual layout isnt a big deal, but it would be nice to make an attempt :)

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 diagram
« Reply #1 on: October 24, 2014, 04:44:56 pm »
Adam,

Check out
Code: [Select]
ProjectInterface.LayoutDiagramEx
Geert

Adam@Schneider

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: auto layout diagram
« Reply #2 on: October 24, 2014, 04:50:58 pm »
Whoa, thanks. I never would have looked there. I think I'm going to have to download the PDF help file, the search function in the chm leaves a lot to be desired.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: auto layout diagram
« Reply #3 on: October 24, 2014, 04:59:58 pm »
No, don't do that. The PDF file is huge and not as up to date as the .chm file.

Try using the index. The Search function looks for each instance of each word in the text string, but the index is a bit more flexible.
Best Regards, Roy

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: auto layout diagram
« Reply #4 on: October 24, 2014, 05:30:26 pm »
Honestly, the whole CHM technology is scrap. Let alone the search index which shows Location always being the same AND repeated in the title. Can't any of them point into the section name? The relevance is almost all times irrelevant. I don't know how long it took me to get a grips of the Automation/Object Model structure. Now I know it after many years, but for a new user its doomed to find anything useful. Probably not Sparx' fault as Windoze does not offer anything better than CHM. And yes - sigh - the Apple Help isn't much better except it looks much better >:( I don't envy Roy for his job. And despite of the former rant the PDF is only for those who print out the internet ;)

q.