C# 클래스 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.
상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
ShaftHolePuncherForm ( ) : System

constructor

ShaftHolePuncherForm ( Profile profile ) : System

constructor

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
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

메소드 상세

Dispose() 보호된 메소드

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

ShaftHolePuncherForm() 공개 메소드

constructor
public ShaftHolePuncherForm ( ) : System
리턴 System

ShaftHolePuncherForm() 공개 메소드

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