Generate a new spot elevation object within the project.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public SpotDimension NewSpotElevation( View view, Reference reference, XYZ origin, XYZ bend, XYZ end, XYZ refPt, bool hasLeader )
Parameters
- view View
- The view in which the spot elevation is to be visible.
- reference Reference
- The reference to which the spot elevation is to be bound.
- origin XYZ
- The point which the spot elevation evaluate.
- bend XYZ
- The bend point for the spot elevation.
- end XYZ
- The end point for the spot elevation.
- refPt XYZ
- The actual point on the reference which the spot elevation evaluate.
- hasLeader Boolean
- Indicate if it has leader or not.
Return Value
SpotDimensionIf successful a new spot dimension object, otherwise nullptr.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the view does not exist in the given document. |