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
Mostrar archivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
ShaftHolePuncherForm ( ) : System

constructor

ShaftHolePuncherForm ( Profile profile ) : System

constructor

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method 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 method

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

ShaftHolePuncherForm() public method

constructor
public ShaftHolePuncherForm ( ) : System
return System

ShaftHolePuncherForm() public method

constructor
public ShaftHolePuncherForm ( Profile profile ) : System
profile Profile ProfileWall, ProfileFloor or ProfileNull
return System