Author Topic: Paste diagram objects by code  (Read 752 times)


  • EA User
  • **
  • Posts: 99
  • Karma: +2/-2
    • View Profile
Paste diagram objects by code
« on: September 18, 2017, 07:46:57 pm »
Selecting diagram objects seems to be OK: The Diagram class has a collection property called SelectedObjects that we can read and write to.

But I can't find a way to paste the selected data objects into another diagram (by code).

Any idea?


  • EA Guru
  • *****
  • Posts: 9683
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Paste diagram objects by code
« Reply #1 on: September 18, 2017, 08:51:13 pm »
AFAIK there's nothing off the shelf for this. You need to iterate through DiagramObjects and create new entries in the target diagram. This shouldn't be a too difficult thing to do. You could even make this smart and paste the diagram elements in a free space (which you have to find prior to this).