ItemFactoryBase.NewReferencePlane2
Description:
Creates a new instance of ReferencePlane.
Creates a new instance of ReferencePlane.
Remarks:
The specific view is applied to the Reference plane only for certain view types: LegendDraftingViewDrawingSheet
The specific view is applied to the Reference plane only for certain view types: LegendDraftingViewDrawingSheet
public ReferencePlane NewReferencePlane2(
XYZ bubbleEnd,
XYZ freeEnd,
XYZ thirdPnt,
View pView
)
-
bubbleEndThe bubble end applied to reference plane.
-
freeEndThe free end applied to reference plane.
-
thirdPntA third point needed to define the reference plane.
-
pViewThe specific view apply to the Reference plane.
// Build now data before creation
XYZ bubbleEnd = new XYZ(1, 0, 0); // bubble end applied to reference plane
XYZ freeEnd = new XYZ(-5, 0, 0); // free end applied to reference plane
// Third point should not be on the bubbleEnd-freeEnd line
XYZ thirdPnt = new XYZ(0, 15, 0); // 3rd point to define reference plane
// Create the reference plane in X-Y, applying the active view
ReferencePlane refPlane = document.Create.NewReferencePlane2(bubbleEnd, freeEnd, thirdPnt, document.ActiveView);