C# Class Revit.SDK.Samples.DoorSwing.CS.DoorGeometry

The DoorGeometry object is used to transform Revit geometry data to appropriate format for GDI.
Show file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
DoorGeometry ( Autodesk door ) : System

construct function.

DrawGraphics ( System graphics, System drawPen ) : void

Draw the line contains in m_curve3Ds in 2d Preview.Drawn as top view.

Private Methods

Method Description
AddCurve ( GeometryObject obj ) : void

generate data of a Curve.

AddEdge ( GeometryObject obj ) : void

generate data of an Edge.

AddElement ( GeometryObject obj ) : void

generate data of a Geometry Element.

AddFace ( GeometryObject obj ) : void

generate data of a Face.

AddGeometryElement ( Autodesk geoEle ) : void

iterate GeometryObject in GeometryObjectArray and generate data accordingly.

AddInstance ( GeometryObject obj ) : void

generate data of a Geometry Instance.

AddMesh ( GeometryObject obj ) : void

generate data of a Mesh.

AddProfile ( GeometryObject obj ) : void

generate data of a Profile.

AddSolid ( GeometryObject obj ) : void

generate data of a Solid.

GetPlanform2DView ( Autodesk door ) : ViewPlan

Retrieve the ViewPlan corresponding to the door's level.

Method Details

DoorGeometry() public method

construct function.
public DoorGeometry ( Autodesk door ) : System
door Autodesk of which geometry data is wanted.
return System

DrawGraphics() public method

Draw the line contains in m_curve3Ds in 2d Preview.Drawn as top view.
public DrawGraphics ( System graphics, System drawPen ) : void
graphics System Graphics to draw
drawPen System The pen to draw curves.
return void