Creates a new sketch plane from a geometric plane.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static SketchPlane Create(
Document document,
Plane plane
)
Parameters
- document Document
-
The document.
- plane Plane
-
The geometry plane where the sketch plane will be created.
Return Value
SketchPlane
The newly created sketch plane.
Exceptions
Remarks
There will not be a reference relationship established from the sketch plane to the input face. To create a SketchPlane with a reference to other geometry,
use the overload with a Reference input.
Example
C#
public static SketchPlane CreateSketchPlane(Autodesk.Revit.DB.Document document, Plane plane)
{
SketchPlane sketchPlane = null;
sketchPlane = SketchPlane.Create(document, plane);
if (null == sketchPlane)
{
throw new Exception("Create the sketch plane failed.");
}
return sketchPlane;
}
VB
Public Shared Function CreateSketchPlane(document As Autodesk.Revit.DB.Document, plane As Plane) As SketchPlane
Dim sketchPlane__1 As SketchPlane = Nothing
sketchPlane__1 = SketchPlane.Create(document, plane)
If sketchPlane__1 Is Nothing Then
Throw New Exception("Create the sketch plane failed.")
End If
Return sketchPlane__1
End Function
See Also
Reference