Book a Demo

Author Topic: Create Custom Diagrams programmatically  (Read 3961 times)

André Ribeiro

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Create Custom Diagrams programmatically
« on: August 19, 2013, 05:00:47 am »
Hello everyone,

I've created some diagram profiles and now I've been trying to create these diagrams programmatically.
The code I'm using is the following:

Code: [Select]
package.Diagrams.AddNew(diagramName, diagramType);but I don't know the diagramType value I should use (what it value in the Profile definition it should correspond) and if I need to specify a stereotype.

Thanks in advance!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Create Custom Diagrams programmatically
« Reply #1 on: August 19, 2013, 07:13:28 am »
Try to supply the FQN like "myProfile::myDiagram"


q.

André Ribeiro

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Create Custom Diagrams programmatically
« Reply #2 on: August 19, 2013, 07:55:32 pm »
Thanks q!

It solved my problem. ;D