Creates a new instance of ReferencePlane.
Namespace: Autodesk.Revit.CreationAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public ReferencePlane NewReferencePlane(
XYZ bubbleEnd,
XYZ freeEnd,
XYZ cutVec,
View pView
)
Parameters
- bubbleEnd XYZ
- The bubble end applied to reference plane.
- freeEnd XYZ
- The free end applied to reference plane.
- cutVec XYZ
- The cut vector apply to reference plane, should perpendicular
to the vector (bubbleEnd-freeEnd).
- pView View
- The specific view apply to the Reference plane.
Return Value
ReferencePlane The newly created reference plane.
Remarks
The specific view is applied to the Reference plane only for certain view types:
LegendDraftingViewDrawingSheet
Example
C#
XYZ bubbleEnd = new XYZ(1, 0, 0);
XYZ freeEnd = new XYZ(-5, 0, 0);
XYZ cutVec = new XYZ(0, 0, 1);
ReferencePlane refPlane = document.Create.NewReferencePlane(bubbleEnd, freeEnd, cutVec, document.ActiveView);
VB
Dim bubbleEnd As New XYZ(1, 0, 0)
Dim freeEnd As New XYZ(-5, 0, 0)
Dim cutVec As New XYZ(0, 0, 1)
Dim refPlane As ReferencePlane = document.Create.NewReferencePlane(bubbleEnd, freeEnd, cutVec, document.ActiveView)
See Also
Reference