C# Класс Revit.SDK.Samples.NewRebar.CS.NewRebarShapeForm

This form is provided for user to define a new RebarShape.
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
NewRebarShapeForm ( ) : System

Default constructor.

NewRebarShapeForm ( Autodesk rvtDoc, RebarShapeDef shapeDef ) : System

Constructor, Initialize the fields.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
GetOrCreateDefinitionGroup ( ) : DefinitionGroup

Get a definition group if there exists one, otherwise, a new one will be created.

InitializeComponent ( ) : void

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

NewRebarShapeForm_Load ( object sender, EventArgs e ) : void

Load event, Initialize the controls data.

addConstraintButton_Click ( object sender, EventArgs e ) : void

Present a dialog to add a constraint to RebarShapeDef.

addParameterButton_Click ( object sender, EventArgs e ) : void

Present a dialog to add a parameter to RebarShapeDef.

cancelButton_Click ( object sender, EventArgs e ) : void

Cancel Button, Cancel the creation of RebarShape.

constraintListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

When the selection in the constraint listBox is changed, the property grid's content should be changed too.

okButton_Click ( object sender, EventArgs e ) : void

OK Button, commit the RebarShapeDef, if there are not any exception, The RebarShape will be added to Revit Document successfully.

parameterListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

When the selection in the parameter listBox is changed, the property grid's content should be changed too.

useHooksCheckBox_CheckedChanged ( object sender, EventArgs e ) : void

When the check status of useHooksCheckBox is changed, other comboBox's enabled status should be changed too.

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

NewRebarShapeForm() публичный Метод

Default constructor.
public NewRebarShapeForm ( ) : System
Результат System

NewRebarShapeForm() публичный Метод

Constructor, Initialize the fields.
public NewRebarShapeForm ( Autodesk rvtDoc, RebarShapeDef shapeDef ) : System
rvtDoc Autodesk
shapeDef RebarShapeDef RebarShapeDef object
Результат System