The sketch plane assigned to the view for model curve creation.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public SketchPlane SketchPlane { get; set; }
Property Value
SketchPlaneThe sketch plane, or null for views which don't allow sketching (such as schedules) or for views that allow model curve creation but have no current sketch plane assigned.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when setting the property to null. |
ArgumentException | Thrown when setting the property to a sketch plane that cannot be used to create model elements, or when the input sketch plane is orthogonal to the view orientation. |
InvalidOperationException | Thrown when setting the property to a view that does not permit model curve creation, or when other errors occur. |