C# Class Revit.SDK.Samples.Openings.CS.BoundingBox

This class which inherit from Autodesk.Revit.DB.BoundingBoxXYZ store the information about Max (Min) coordinate of object can get all the corner point coordinate and create X model line
Inheritance: BoundingBoxXYZ
Show file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
BoundingBox ( BoundingBoxXYZ boundBoxXYZ ) : System

The default constructor

CreateLines ( UIApplication app ) : void

Create X model line with the BoundBox Create 12 lines to makeup an cube

Private Methods

Method Description
GetCorners ( ) : void

get all the Corner points of Cube Box via Min and Max

NewModelLine ( UIApplication app, int pointIndex1, int pointIndex2 ) : void

new ModelLine in BoundingBox

NewSketchPlanePassLine ( System.Line aline, UIApplication app ) : SketchPlane

Create a Sketch Plane which pass the defined line the defined line must be one of BoundingBox Profile

Method Details

BoundingBox() public method

The default constructor
public BoundingBox ( BoundingBoxXYZ boundBoxXYZ ) : System
boundBoxXYZ BoundingBoxXYZ The reference of the application in revit
return System

CreateLines() public method

Create X model line with the BoundBox Create 12 lines to makeup an cube
public CreateLines ( UIApplication app ) : void
app UIApplication Application get from RevitAPI
return void