Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: blue5teel on January 20, 2009, 12:30:07 am

Title: copy or move elements from one package to another
Post by: blue5teel on January 20, 2009, 12:30:07 am
Hello,

are there any commands in the automation interface to copy or move elments from one package to another?

thx in advance
Title: Re: copy or move elements from one package to anot
Post by: «Midnight» on January 20, 2009, 07:27:26 am
Try setting the PackageID of the element to that of the (new) target package. Note that this is different than setting the ParentID property. They are right next to each other in the documentation, so it is easy to miss either one.
Title: Re: copy or move elements from one package to anot
Post by: blue5teel on January 21, 2009, 07:12:51 pm
Thx, this works for me  :)

But is it even possible to COPY elements, diagrams and packages ?
The solution above just moves objects the objects between packages.