Note: This API is now obsolete.
Moves a collection of points in a topography surface by a designated vector.
Namespace: Autodesk.Revit.DB.Architecture
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
[ObsoleteAttribute("This method is deprecated in Revit 2024 with the introduction of the new Toposolid elements. It is recommended that TopographySurface elements should be converted to Toposolid elements to enable better editing options.")] public void MovePoints( IList<XYZ> movedPoints, XYZ moveVector )
Parameters
- movedPoints IList<XYZ>
- The points to be moved.
- moveVector XYZ
- The vector which describes the distance and direction for the move. Note that the Z value represents a change in elevation, pass Z=0 to move the point without changing the elevation.
Exceptions
Exception | Condition |
---|---|
ArgumentException | There are no points in the input points set. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | This element is not a TopographySurface. -or- The points of this topography surface are not editable. -or- The TopographySurface element is not in an active TopographyEditScope. Modification cannot be made on this TopographySurface. -or- None of the input points exists in the current TopographySurface. |
ModificationForbiddenException | The document containing this TopographySurface is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document containing this TopographySurface is being loaded, or is in the midst of another sensitive process. |
ModificationOutsideTransactionException | The document containing this TopographySurface has no open transaction. |