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

maintain the baseline of the curtain wall
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Свойство Type Description
SCALEFACTOR double

Méthodes publiques

Méthode 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

Méthode 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 méthode

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 ///
Résultat void

AddPoint() public méthode

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

Draw() public méthode

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 ///
Résultat void

RemovePoints() public méthode

Clear points in baseline
public RemovePoints ( ) : void
Résultat void

WallDrawing() public méthode

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

Property Details

SCALEFACTOR public_oe property

public double SCALEFACTOR
Résultat double