Book a Demo

Author Topic: Make Composite from C# Addin  (Read 5133 times)

rahul

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Make Composite from C# Addin
« 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.

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Make Composite from C# Addin
« Reply #1 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.
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

DaHopi

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Make Composite from C# Addin
« Reply #2 on: May 13, 2016, 08:33:38 pm »
Hello, is this feature in EA12.1 now available?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13471
  • Karma: +571/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Make Composite from C# Addin
« Reply #3 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

Geert

DaHopi

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Make Composite from C# Addin
« Reply #4 on: May 13, 2016, 09:07:59 pm »
Ahh i was in the wrong UserGuide..  not it works, thank u!