/// <summary> /// Construction of the main export dialog. /// </summary> /// <param name="app">The UIApplication that contains a list of all documents.</param> /// <param name="configurationsMap">The configurations to show in the dialog.</param> /// <param name="selectedConfigName">The current selected configuration name.</param> public IFCExport(Autodesk.Revit.UI.UIApplication app, IFCExportConfigurationsMap configurationsMap, String selectedConfigName) { m_configMap = configurationsMap; SetParent(app.MainWindowHandle); InitializeComponent(); RestorePreviousWindow(); currentSelectedSetup.SelectionChanged -= currentSelectedSetup_SelectionChanged; UpdateCurrentSelectedSetupCombo(selectedConfigName); UpdateOpenedProjectsListView(app); #if IFC_OPENSOURCE Title = Properties.Resources.ExportIFC + " (" + IFCUISettings.GetAssemblyVersionForUI() + ")"; #else Title = Properties.Resources.ExportIFC; #endif TheDocument = UpdateOpenedProject(app); int docToExport = GetDocumentExportCount(); updateFileName(); }
/// <summary> /// Construction of the main export dialog. /// </summary> /// <param name="app">The UIApplication that contains a list of all documents.</param> /// <param name="configurationsMap">The configurations to show in the dialog.</param> /// <param name="selectedConfigName">The current selected configuration name.</param> public IFCExport(Autodesk.Revit.UI.UIApplication app, IFCExportConfigurationsMap configurationsMap, String selectedConfigName) { m_configMap = configurationsMap; InitializeComponent(); RestorePreviousWindow(); currentSelectedSetup.SelectionChanged -= currentSelectedSetup_SelectionChanged; UpdateCurrentSelectedSetupCombo(selectedConfigName); UpdateOpenedProjectsListView(app); Title = Properties.Resources.ExportIFC; versionDescription.Text = IFCUISettings.GetAssemblyVersionForUI(); TheDocument = UpdateOpenedProject(app); int docToExport = GetDocumentExportCount(); updateFileName(); }