Book a Demo

Author Topic: Diagram Frame / Diagram Reference  (Read 3191 times)

duncan.greenyer

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Diagram Frame / Diagram Reference
« on: June 01, 2023, 03:34:05 am »
Does anyone know how to programmatically create a Diagram Frame or Diagram Reference. If I create a UMLDiagram element using package.elements.addnew("test", "UMLDiagram") it does not appear in my package + I have no idea how to get it to reference the diagram that it is supposed to represent. The documentation also doesn't seem to reference how it can be achieved. Has anyone got any ideas?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Diagram Frame / Diagram Reference
« Reply #1 on: June 01, 2023, 04:55:04 am »
create one manually and inspect the database. I think those are text items with a certain subtype (ntype)

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Diagram Frame / Diagram Reference
« Reply #2 on: June 01, 2023, 05:17:37 am »
Basically it's an Element in t_object with Object_type UMLDiagram and NType 0 = frame/1 = diagram reference. The rest would be obvious when looking at a manually created example (like Geert suggested).

q.

vrieg

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Diagram Frame / Diagram Reference
« Reply #3 on: June 03, 2023, 12:11:17 am »
you should be able to set it via:

EA.Diagram Diag.StyleEx = "SF=1;";

Cheers