1
Automation Interface, Add-Ins and Tools / Script for copying diagrams
« on: December 16, 2024, 10:19:58 pm »
Hi Everyone,
I need to create a JScript for copying a diagram from a package source to a destination source. I'm able to copy through the use of targetPackage.Diagrams.AddNew functions and setting elementId, top, bottom, right and left for all the elements to move within the diagram. The issue that I have is that the copied diagram is not well formatted and there are some elements that are overshadowing others or the positions are different. Is there a way to simplify the copy and have a full copied diagrams identical to the original through functions in a script?
Thanks
I need to create a JScript for copying a diagram from a package source to a destination source. I'm able to copy through the use of targetPackage.Diagrams.AddNew functions and setting elementId, top, bottom, right and left for all the elements to move within the diagram. The issue that I have is that the copied diagram is not well formatted and there are some elements that are overshadowing others or the positions are different. Is there a way to simplify the copy and have a full copied diagrams identical to the original through functions in a script?
Thanks