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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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