Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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.
-
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.
-
Hello, is this feature in EA12.1 now available?
-
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
-
Ahh i was in the wrong UserGuide.. not it works, thank u!