Author Topic: Element composite  (Read 2584 times)

solenn

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Element composite
« 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



Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Element composite
« Reply #1 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

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Element composite
« Reply #2 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.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Element composite
« Reply #3 on: September 06, 2011, 05:39:19 pm »
right! I completely forgot about that :-[

Geert