AddReferencePlane Method (Plane, BoundingBoxUV)


Adds a reference plane to the DirectShapeType. The reference plane can either be bounded or unbounded.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2022

Syntax

C#
public void AddReferencePlane(
	Plane refPlane,
	BoundingBoxUV boundingBoxUV
)
Visual Basic
Public Sub AddReferencePlane ( _
	refPlane As Plane, _
	boundingBoxUV As BoundingBoxUV _
)
Visual C++
public:
void AddReferencePlane(
	Plane^ refPlane, 
	BoundingBoxUV^ boundingBoxUV
)

Parameters

refPlane
Type: Autodesk.Revit.DB Plane
The geometry of the new reference plane.
boundingBoxUV
Type: Autodesk.Revit.DB BoundingBoxUV
If boundingBoxUV is set, the resulting reference plane that is added to the DirectShapeType will be displayed with those bounds. Note that the specified bounds must not be degenerate. If boundingBoxUV is not set, reasonable bounds are automatically calculated and applied to the input plane. The automatic bounds are based on the host direct shape's geometry.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException boundingBoxUV cannot be used as a BoundingBoxUV for the reference plane surface.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null

See Also