Book a Demo

Author Topic: Deep copy a diagram in a script  (Read 3724 times)

Campbell3141

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Deep copy a diagram in a script
« on: August 07, 2015, 02:00:26 am »
I need to copy and paste diagrams into a separate section of my model with the deep copy option in a script. The objective is to arrange folders into a certain structure for HTML export. I do not see any methods for this in the API. Can this be done under script control? As a note, these are BPMN models and not UML but I don’t think that this should matter.
« Last Edit: August 07, 2015, 02:34:27 am by huntsvilleBruce »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Deep copy a diagram in a script
« Reply #1 on: August 07, 2015, 05:12:40 am »
You can iterate diagramObjects (and diagramLinks) and create clones of them in the new diagram. It should be pretty much straight forward. There is no such API method like copy/paste for diagrams.

q.