C# Class Revit.SDK.Samples.CurtainWallGrid.CS.WallDrawing

maintain the baseline of the curtain wall
Exibir arquivo Open project: AMEE/revit Class Usage Examples

Public Properties

Property Type Description
SCALEFACTOR double

Public Methods

Method Description
AddMousePosition ( Point mousePosition ) : void

store mouse position when mouse moves (the location will be the candidate end points of the baseline)

AddPoint ( Point mousePosition ) : void

Add point to baseline of the curtain wall

Draw ( Graphics graphics, Pen pen ) : void

draw the baseline for the curtain wall creation in the picture box in the "Create Curtain Wall" tab page, user needs to draw the baseline for wall creation

RemovePoints ( ) : void

Clear points in baseline

WallDrawing ( WallGeometry wallGeo ) : System

default constructor

Private Methods

Method Description
ConvertToPointD ( Point srcPoint ) : PointD

scale the point and store them in PointD format

DrawBaseline ( Graphics graphics, Pen pen ) : void

draw the baseline / the candidate baseline (start point confirmed, end point didn't)

DrawCoordinateOrigin ( Graphics graphics, Pen pen ) : void

draw the coordinate system origin for the baseline drawing

WriteCoordinate ( Graphics graphics, Pen pen ) : void

write the coordinate for moving mouse

Method Details

AddMousePosition() public method

store mouse position when mouse moves (the location will be the candidate end points of the baseline)
public AddMousePosition ( Point mousePosition ) : void
mousePosition Point /// the location of the mouse cursor ///
return void

AddPoint() public method

Add point to baseline of the curtain wall
public AddPoint ( Point mousePosition ) : void
mousePosition Point /// the location of the mouse cursor ///
return void

Draw() public method

draw the baseline for the curtain wall creation in the picture box in the "Create Curtain Wall" tab page, user needs to draw the baseline for wall creation
public Draw ( Graphics graphics, Pen pen ) : void
graphics System.Drawing.Graphics /// form graphic ///
pen System.Drawing.Pen /// pen used to draw line in pictureBox ///
return void

RemovePoints() public method

Clear points in baseline
public RemovePoints ( ) : void
return void

WallDrawing() public method

default constructor
public WallDrawing ( WallGeometry wallGeo ) : System
wallGeo WallGeometry /// the mapped wall geometry information ///
return System

Property Details

SCALEFACTOR public_oe property

public double SCALEFACTOR
return double