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

window form contains one picture box to show the profile of a wall or floor, and three command buttons. User can draw curves of opening in picture box.
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode Description
ShaftHolePuncherForm ( ) : System

constructor

ShaftHolePuncherForm ( Profile profile ) : System

constructor

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
ButtonClean_Click ( object sender, EventArgs e ) : void

clear all the curves of the Opening

CancelButton_Click ( object sender, EventArgs e ) : void

close the form

CreateButton_Click ( object sender, EventArgs e ) : void

create Shaft Opening in Revit

DirectionComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

PictureBox_MouseDown ( object sender, MouseEventArgs e ) : void

store mouse location when mouse down

PictureBox_MouseMove ( object sender, MouseEventArgs e ) : void

draw the line to where mouse moved

PictureBox_Paint ( object sender, PaintEventArgs e ) : void

draw the curve of floor (or wall) and curves of Opening

ScaleComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

set the scale of profile when create Shaft Opening

Method Details

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

ShaftHolePuncherForm() public méthode

constructor
public ShaftHolePuncherForm ( ) : System
Résultat System

ShaftHolePuncherForm() public méthode

constructor
public ShaftHolePuncherForm ( Profile profile ) : System
profile Profile ProfileWall, ProfileFloor or ProfileNull
Résultat System