Revit 2026 API
Datum |
Sets whether the curve representing the datum plane is displayed according to its 3d extents, or else according to a view specific setting.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public void SetDatumExtentType( DatumEnds datumEnd, View view, DatumExtentType extentMode )
Public Sub SetDatumExtentType ( datumEnd As DatumEnds, view As View, extentMode As DatumExtentType )
public: void SetDatumExtentType( DatumEnds datumEnd, View^ view, DatumExtentType extentMode )
member SetDatumExtentType : datumEnd : DatumEnds * view : View * extentMode : DatumExtentType -> unit
Parameters
- datumEnd DatumEnds
- Specifies one end of the curve representing the datum plane in the view.
- view View
- The view in which to set the datum extent settings.
- extentMode DatumExtentType
- The DatumExtentType.

Exception | Condition |
---|---|
ArgumentException | The datum plane cannot be visible in the view. |
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |

In a particular view, the datum plane is represented by a curve and the two ends of the curve may have different DatumExtentTypes in that view.
If the value is changed from DatumExtentType::Model to DatumExtentType::ViewSpecific, then the view specific extents will be identical to the model
extent until modified.
See Also