Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: rahul on January 10, 2011, 08:04:08 am

Title: Make Composite from C# Addin
Post by: rahul on January 10, 2011, 08:04:08 am
Helllo Frens,

I have a question..

Is it possible to make an element to have composite diagram from code?
same way as we do from EA -> right click on an element --> Advanced --> Make Composite.

TIA.
Title: Re: Make Composite from C# Addin
Post by: mrf on January 10, 2011, 08:53:26 am
Hi Lokesh,

Support for setting the composite state of an Element through the automation interface is scheduled to be included in Enterprise Architect version 9.

For the mean time there is an indirect way of setting the composite state through the PDATA fields, if you search the forum history you should be able to find some further info.
Title: Re: Make Composite from C# Addin
Post by: DaHopi on May 13, 2016, 08:33:38 pm
Hello, is this feature in EA12.1 now available?
Title: Re: Make Composite from C# Addin
Post by: Geert Bellekens on May 13, 2016, 08:43:06 pm
Yes, See EA.Element.IsComposite, EA.Element.CompsositeDiagram and  EA.Element.SetCompositeDiagram()
http://www.sparxsystems.com/enterprise_architect_user_guide/12.1/automation_and_scripting/element2.html (http://www.sparxsystems.com/enterprise_architect_user_guide/12.1/automation_and_scripting/element2.html)

Geert
Title: Re: Make Composite from C# Addin
Post by: DaHopi on May 13, 2016, 09:07:59 pm
Ahh i was in the wrong UserGuide..  not it works, thank u!