Author Topic: Add Related Elements and Apply Layout  (Read 3669 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Add Related Elements and Apply Layout
« on: April 12, 2013, 08:45:47 pm »
Hi,

Is there a way via the automation interface to Add Related Elements to a diagram ? I'd then want to apply a Layout, again is there method to apply a layout ?

Regards,

Jon.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Add Related Elements and Apply Layout
« Reply #1 on: April 12, 2013, 11:21:04 pm »
You need to parse Element.Connectors and create DiagramObject elements. For the layout use ProjectInterface.LayoutDiagram.

q.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Add Related Elements and Apply Layout
« Reply #2 on: April 13, 2013, 01:44:56 am »
Got it, thanks.