Element
|
Moves a set of elements by a given transformation.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
public static void MoveElements(
Document document,
ICollection<ElementId> elementsToMove,
XYZ translation
)
Parameters
| Exception | Condition |
|---|---|
| ArgumentException | The given element id set is empty. -or- One or more elements in elementsToMove do not exist in the document. |
| ArgumentNullException | A non-optional argument was null |
| InvalidOperationException | If we are not able to move all the elements (for example, if one or more elements is pinned). -or- Move operation failed. |