NewPlane Method (CurveArray)


Creates a new geometric plane from a loop of planar curves.

Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)

Syntax

C#
[ObsoleteAttribute("This method is obsolete in Revit 2017. Please use CurveLoop.GetPlane() instead.")]
public Plane NewPlane(
	CurveArray curveloop
)
Visual Basic
<ObsoleteAttribute("This method is obsolete in Revit 2017. Please use CurveLoop.GetPlane() instead.")> _
Public Function NewPlane ( _
	curveloop As CurveArray _
) As Plane
Visual C++
[ObsoleteAttribute(L"This method is obsolete in Revit 2017. Please use CurveLoop.GetPlane() instead.")]
public:
Plane^ NewPlane(
	CurveArray^ curveloop
)

Parameters

curveloop
Type: Autodesk.Revit.DB CurveArray
The closed loop of planar curves to locate plane.

Return Value

If successful a new geometric plane will be returned. Otherwise a null reference ( Nothing in Visual Basic) .

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException Thrown when the input curve loop is a null reference ( Nothing in Visual Basic) or empty.
Autodesk.Revit.Exceptions ArgumentException Thrown when the input curve loop does not lie in a plane.
Autodesk.Revit.Exceptions ArgumentException Thrown when the input curve loop is not closed.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →