ItemFactoryBase.NewReferencePlane2
Public Class
Creates a new instance of ReferencePlane.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ReferencePlane NewReferencePlane2( XYZ bubbleEnd, XYZ freeEnd, XYZ thirdPnt, View pView)
Parameters
bubbleEnd XYZ
The bubble end applied to reference plane.
freeEnd XYZ
The free end applied to reference plane.
thirdPnt XYZ
A third point needed to define the reference plane.
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: Legend DraftingView DrawingSheet
Example
// Build now data before creationXYZ bubbleEnd = new XYZ(1, 0, 0); // bubble end applied to reference planeXYZ freeEnd = new XYZ(-5, 0, 0); // free end applied to reference plane// Third point should not be on the bubbleEnd-freeEnd lineXYZ thirdPnt = new XYZ(0, 15, 0); // 3rd point to define reference plane
// Create the reference plane in X-Y, applying the active viewReferencePlane refPlane = document.Create.NewReferencePlane2(bubbleEnd, freeEnd, thirdPnt, document.ActiveView);