Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: OpenIT Solutions on April 12, 2013, 08:45:47 pm

Title: Add Related Elements and Apply Layout
Post by: OpenIT Solutions 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.
Title: Re: Add Related Elements and Apply Layout
Post by: qwerty 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.
Title: Re: Add Related Elements and Apply Layout
Post by: OpenIT Solutions on April 13, 2013, 01:44:56 am
Got it, thanks.