Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: solenn on September 01, 2011, 10:44:51 pm

Title: Element composite
Post 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


Title: Re: Element composite
Post by: Geert Bellekens on September 06, 2011, 04:47:25 pm
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
Title: Re: Element composite
Post by: Aaron B on September 06, 2011, 05:23:25 pm
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.
Title: Re: Element composite
Post by: Geert Bellekens on September 06, 2011, 05:39:19 pm
right! I completely forgot about that :-[

Geert