C# Class Revit.SDK.Samples.ModelLines.CS.ModelLinesForm

Inheritance: System.Windows.Forms.Form
Show file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
ModelLinesForm ( ModelLines dataBuffer ) : System

Constructor of ModelLinesForm

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AssertDataIntegrity ( LineType createType ) : bool

Check the data which the user input are integrated or not

BindComboBox ( ComboBox control, Object dataSource ) : void

Bind the data source of the ComboBox

GetCurveType ( ) : LineType

Get the curve type for creation from the UI

InitializeComponent ( ) : void

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

InitializeInformationGrid ( ) : void

Bind the DataSource of the information DataGridView

NurbSplineRadioButton_CheckedChanged ( object sender, EventArgs e ) : void

When the NurbSplineRadioButton checked state changed, this method is called If it is checked, make otherPanel visible and reset the elementIdComboBox

ReBindElementIdComboBox ( LineType type ) : void

Rebind the data source of the elementIdComboBox control according to the line type

arcRadioButton_CheckedChanged ( object sender, EventArgs e ) : void

When the arcRadioButton checked state changed, this method is called If it is checked, make lineArcPanel visible and able third point

closeButton_Click ( object sender, EventArgs e ) : void

When the user click the close button, just close the form

createButton_Click ( object sender, EventArgs e ) : void

When the user click the create button, invoke method to create ReferencePlane

createSketchPlaneButton_Click ( object sender, EventArgs e ) : void

When click the createSketchPlaneButton, create a new sketch plane in revit

ellipseRadioButton_CheckedChanged ( object sender, EventArgs e ) : void

When the ellipseRadioButton checked state changed, this method is called If it is checked, make otherPanel visible and reset the elementIdComboBox

hermiteSplineRadioButton_CheckedChanged ( object sender, EventArgs e ) : void

When the hermiteSplineRadioButton checked state changed, this method is called If it is checked, make otherPanel visible and reset the elementIdComboBox

lineRadioButton_CheckedChanged ( object sender, EventArgs e ) : void

When the lineRadioButton checked state changed, this method is called If it is checked, make lineArcPanel visible and disable third point

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

ModelLinesForm() public method

Constructor of ModelLinesForm
public ModelLinesForm ( ModelLines dataBuffer ) : System
dataBuffer ModelLines A reference of ModelLines class
return System