Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: adepreter 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?
-
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).
q.