Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: tzafrir on March 17, 2016, 05:03:26 pm
-
Hi,
Is there an API to clone EA.Element, similar to the cloning API of a package EA.Package package.Clone()?
Tzafrir
-
Hi,
yes.
Have a look at: http://community.sparxsystems.com/tutorials/572-44create-your-first-c-enterprise-architect-add-in-in-10-minutes
There you find all Events you can use. Geert has documented them. Useful stuff for writing Addin.
Helmut
-
No, there isn't. Use Package.Clone for single elements by creating a dummy package and cloning that with the element temporarily moved in. Or write your own clone method.
q.