ItemFactoryBase.NewReferencePlane
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 NewReferencePlane(
XYZ bubbleEnd,
XYZ freeEnd,
XYZ cutVec,
View pView
)
-
bubbleEndThe bubble end applied to reference plane.
-
freeEndThe free end applied to reference plane.
-
cutVecThe cut vector apply to reference plane, should perpendicular to the vector (bubbleEnd-freeEnd).
-
pViewThe specific view apply to the Reference plane.
// Define data for reference plane 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
// Cut vector should be perpendicular to bubbleEnd-freeEnd vector
XYZ cutVec = new XYZ(0, 0, 1); // cut vector applied to reference plane
// Create the reference plane, applying the active view
ReferencePlane refPlane = document.Create.NewReferencePlane(bubbleEnd, freeEnd, cutVec, document.ActiveView);