Book a Demo

Author Topic: Set specific diagram as composite diagram  (Read 3497 times)

Lars J.

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Set specific diagram as composite diagram
« on: May 21, 2013, 10:16:31 pm »
Hi all,

I know about the _makeInstance and the _defaultDiagramType attributes for metaclasses, but they only help to create a new composite diagram. That's not what I want to do.

Is there an api / property that lets me set a specific diagram as a composite diagram as I can do it from the context menu in the user interface (New Diagram -> Select Composite diagram)? Unfortunately the CompositeDiagram property of Element is read-only

thanks in advance

Lars

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Set specific diagram as composite diagram
« Reply #1 on: May 21, 2013, 10:39:44 pm »
Hi Lars,

Yes you can, but it is not easy.
Search the forum (using the top left button) for keyword "composite". There is a topic out there that explains all the details.
IIRC is was something with adding a record in t_xref and ntype=8

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Set specific diagram as composite diagram
« Reply #2 on: May 22, 2013, 12:39:20 am »
See chapter 7.3 of my Inside book.

q.