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

This is the main form for user to operate the Rebar creation.
Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
NewRebarForm ( ) : System

Default constructor.

NewRebarForm ( Autodesk rvtDoc ) : System

Constructor, initialize fields of RebarBarTypes and RebarShapes.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

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

NewRebarForm_Load ( object sender, EventArgs e ) : void

Load event, Initialize controls data source.

UpdateUIStatus ( ) : void

Update the status of some controls.

byArcradioButton_CheckedChanged ( object sender, EventArgs e ) : void

byArcradioButton check status change event.

bySegmentsradioButton_CheckedChanged ( object sender, EventArgs e ) : void

bySegmentsradioButton check status change event.

cancelButton_Click ( object sender, EventArgs e ) : void

Cancel Button, return DialogResult.Cancel and close this form.

createShapeButton_Click ( object sender, EventArgs e ) : void

Present a dialog to customize a RebarShape.

okButton_Click ( object sender, EventArgs e ) : void

OK Button, return DialogResult.OK and close this form.

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

NewRebarForm() public method

Default constructor.
public NewRebarForm ( ) : System
return System

NewRebarForm() public method

Constructor, initialize fields of RebarBarTypes and RebarShapes.
public NewRebarForm ( Autodesk rvtDoc ) : System
rvtDoc Autodesk
return System