C# Class Revit.SDK.Samples.ImportExport.CS.ImportDWGForm

It contains a dialog which provides the options of importing dwg format
Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
ImportDWGForm ( ImportDWGData importData ) : System

Constructor

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.

InitializeControls ( ) : void

Initialize values and status of controls

SetImportColorMode ( ) : void

Set the value of color mode

SetImportLayers ( ) : void

Set the value of ImportVisibleLayersOnly

SetImportPlacement ( ) : void

Set the value of placement

SetImportUnitsAndScaling ( ) : void

Set the value of unit, scaling

SetImportViewsRelated ( ) : void

Set the value of ImportThisViewOnly, ImportOrientToView, ImportView

ValidateFileName ( ) : System.Boolean

Validate the file to import

buttonBrowser_Click ( object sender, EventArgs e ) : void

Specify a file to export from

buttonOpen_Click ( object sender, EventArgs e ) : void

Transfer information back to ImportData class and execute IMPORT operation

checkBoxCurrentViewOnly_CheckedChanged ( object sender, EventArgs e ) : void

Change the status of checkBoxOrient2View and comboBoxLevel according to the selection

comboBoxUnits_SelectedIndexChanged ( object sender, EventArgs e ) : void

Change the status of textBoxScale according to the selection

textBoxScale_KeyPress ( object sender, KeyPressEventArgs e ) : void

Only numbers and '.' permitted

textBoxScale_TextChanged ( object sender, EventArgs e ) : void

Only one '.' permitted

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

ImportDWGForm() public method

Constructor
public ImportDWGForm ( ImportDWGData importData ) : System
importData ImportDWGData
return System