2027 Method
Changes 0
M

ElementTransformUtils.MoveElements

Description:
Moves a set of elements by a given transformation.
public static void MoveElements(
	Document document,
	ICollection<ElementId> elementsToMove,
	XYZ translation
)
  • document
    The document that owns the elements.
  • ICollection<ElementId>
    elementsToMove
    The set of elements to move.
  • translation
    The translation vector for the elements.
  • The given element id set is empty. -or- One or more elements in elementsToMove do not exist in the document.
  • A non-optional argument was null
  • If we are not able to move all the elements (for example, if one or more elements is pinned). -or- Move operation failed.