Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: solenn on September 01, 2011, 10:44:51 pm
-
Hello,
I would like "make composite" an element with c# code.
I have write :
element.Subtype = 8;
After element is composite but when I double clicked, the diagram can be opened. I don't have "OO" in the diagram for the composite element.
Can someone help me?
Thanks a lot,
Solenn
-
Solenn,
There's more to it then just the element subtype.
Search this forum using the top left button for the terms "make composite" and you should find the whole explanation.
Geert
-
There was an IsComposite property added to the EA.Element class in EA version 9 to help with setting an element as Composite. See "IsComposite" on the following API reference page:
http://www.sparxsystems.com/enterprise_architect_user_guide/9.0/automation/element2.html
HTH.
-
right! I completely forgot about that :-[
Geert