ElementTransformUtils.CopyElement
Description:
Copies an element and places the copy at a location indicated by a given transformation.
Copies an element and places the copy at a location indicated by a given transformation.
-
documentThe document that owns the element.
-
elementToCopyThe id of the element to copy.
-
translationThe translation vector for the new element.
Return Value
ICollection<ElementId>
The ids of the newly created copied elements. More than one element may be created due to dependencies.
-
The element elementToCopy does not exist in the document -or- The input element is a Sketch member and there is no Sketch in the edit mode to place this element in.
-
A non-optional argument was null
-
It is not allowed to copy Sketch member to non-parallel sketch. -or- If we are not able to copy the element.