C# Class Revit.SDK.Samples.NewRebar.CS.NewRebarShapeForm

This form is provided for user to define a new RebarShape.
Inheritance: System.Windows.Forms.Form
Exibir arquivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
NewRebarShapeForm ( ) : System

Default constructor.

NewRebarShapeForm ( Autodesk rvtDoc, RebarShapeDef shapeDef ) : System

Constructor, Initialize the fields.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
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.

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

NewRebarShapeForm() public method

Default constructor.
public NewRebarShapeForm ( ) : System
return System

NewRebarShapeForm() public method

Constructor, Initialize the fields.
public NewRebarShapeForm ( Autodesk rvtDoc, RebarShapeDef shapeDef ) : System
rvtDoc Autodesk
shapeDef RebarShapeDef RebarShapeDef object
return System