C# Class Revit.SDK.Samples.ShaftHolePuncher.CS.ProfileBeam

ProfileBeam class contains the information about profile of beam, and contains method used to create opening on a beam.
Inheritance: Profile
Exibir arquivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
ChangeTransformMatrix ( bool isZaxis ) : void

Change transform matrix used to transform points to 2d.

CreateOpening ( List points ) : Opening

Create Opening on beam

GetFaceBounds ( ) : System.Drawing.PointF[]

Get the bound of a face

GetFaces ( Autodesk elem ) : List>

Get edges of element's profile

GetNeedPoints ( List faces ) : List>

Get points of the first face

GetTo2DMatrix ( ) : Matrix4

Get a matrix which can transform points to 2D

ProfileBeam ( FamilyInstance beam, ExternalCommandData commandData ) : System

constructor

Method Details

ChangeTransformMatrix() public method

Change transform matrix used to transform points to 2d.
public ChangeTransformMatrix ( bool isZaxis ) : void
isZaxis bool transform points to which plane. /// true means transform points to plane whose normal is Zaxis of beam. /// false means transform points to plane whose normal is Yaxis of beam ///
return void

CreateOpening() public method

Create Opening on beam
public CreateOpening ( List points ) : Opening
points List points used to create Opening
return Opening

GetFaceBounds() public method

Get the bound of a face
public GetFaceBounds ( ) : System.Drawing.PointF[]
return System.Drawing.PointF[]

GetFaces() public method

Get edges of element's profile
public GetFaces ( Autodesk elem ) : List>
elem Autodesk selected element
return List>

GetNeedPoints() public method

Get points of the first face
public GetNeedPoints ( List faces ) : List>
faces List edges in all faces
return List>

GetTo2DMatrix() public method

Get a matrix which can transform points to 2D
public GetTo2DMatrix ( ) : Matrix4
return Matrix4

ProfileBeam() public method

constructor
public ProfileBeam ( FamilyInstance beam, ExternalCommandData commandData ) : System
beam FamilyInstance beam to create opening on
commandData ExternalCommandData object which contains reference to Revit Application
return System