C# Class Revit.SDK.Samples.PathReinforcement.CS.Profile

This class stores the geometry information of path reinforcement.
ファイルを表示 Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
Draw ( Graphics graphics, Size size, Pen pen ) : void

Draw the curves of path reinforcement.

Profile ( Autodesk pathRein, ExternalCommandData commandData ) : System

Constructor

Private Methods

Method Description
ComputeBound ( ) : void

Compute the bound of the curves of path reinforcement.

ComputePathTo2D ( ) : void

Transform 3d path to 2d path.

GetActiveViewMatrix ( ) : Matrix4

Get view matrix from active view.

Tessellate ( ) : void

Tessellate the curves of path reinforcement.

Method Details

Draw() public method

Draw the curves of path reinforcement.
public Draw ( Graphics graphics, Size size, Pen pen ) : void
graphics System.Drawing.Graphics Gdi object, used to draw curves of path reinforcement.
size System.Drawing.Size Bound to limit the size of the whole picture
pen System.Drawing.Pen Gdi object,determine the color of the line.
return void

Profile() public method

Constructor
public Profile ( Autodesk pathRein, ExternalCommandData commandData ) : System
pathRein Autodesk selected path reinforcement element.
commandData ExternalCommandData External command data
return System