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

Data class contains the external command data.
Datei anzeigen Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
Export ( string selectedFormat ) : DialogResult

Export according to selected format

Import ( string selectedFormat ) : DialogResult

Export according to selected format

MainData ( ExternalCommandData commandData ) : System

Constructor

ShowOpenDialog ( ImportData importData, String &returnFileName ) : DialogResult

Show Open File dialog

ShowSaveDialog ( ExportData exportData, String &returnFileName, int &filterIndex ) : DialogResult

Show Save dialog

Private Methods

Method Description
Export ( ExportData data ) : DialogResult

Export

GetSelectedExportFormat ( string selectedFormat ) : ExportFormat

Get the format to export

GetSelectedImportFormat ( string selectedFormat ) : ImportFormat

Get the format to import

Import ( ImportData data ) : DialogResult

Import

Method Details

Export() public method

Export according to selected format
public Export ( string selectedFormat ) : DialogResult
selectedFormat string Selected format
return DialogResult

Import() public method

Export according to selected format
public Import ( string selectedFormat ) : DialogResult
selectedFormat string Selected format
return DialogResult

MainData() public method

Constructor
public MainData ( ExternalCommandData commandData ) : System
commandData ExternalCommandData Revit command data
return System

ShowOpenDialog() public static method

Show Open File dialog
public static ShowOpenDialog ( ImportData importData, String &returnFileName ) : DialogResult
importData ImportData Data to import
returnFileName String File name will be returned
return DialogResult

ShowSaveDialog() public static method

Show Save dialog
public static ShowSaveDialog ( ExportData exportData, String &returnFileName, int &filterIndex ) : DialogResult
exportData ExportData Data to export
returnFileName String File name will be returned
filterIndex int Selected filter index will be returned
return DialogResult