Book a Demo

Author Topic: Automatically creating diagrams  (Read 4432 times)

andykennelly

  • EA User
  • **
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Automatically creating diagrams
« on: August 23, 2013, 12:20:42 am »
I know I can easily import a list of elements using the CSV import function.

And I know I can even create links as part of the import if I use scripting. That would then position me to create diagrams with linked elements when subsequently I drag/drop the elements onto a diagram.

I'm now wondering if it's possible to automatically create those diagrams, e.g. for each folder created during the import a diagram is created with the relevant elements and their links - if this is technically possible, I'm seeing a very complex piece of scripting to make it happen!

Maybe the nearest I can get to this is to manually drag/drop and then use Diagram | Layout Diagram.

Any views? Is this somewhere anybody else has been?

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: Automatically creating diagrams
« Reply #1 on: August 23, 2013, 04:12:41 am »
I have used scripts to at least create the diagram and add the items to the diagram. In my case I had many packages with a small number of items in each, so I at least wanted to automate that much.

I still had to manually go into each diagram and resize/relayout so the solution was not ideal.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Automatically creating diagrams
« Reply #2 on: August 23, 2013, 06:37:15 am »
There's a LayoutDiagram method in the project interface. You might use that as a start.

q.

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: Automatically creating diagrams
« Reply #3 on: August 23, 2013, 11:26:19 am »
Quote
There's a LayoutDiagram method in the project interface. You might use that as a start.

q.

Thanks for the pointer!