/// <summary> /// Initializes the comboboxes via the configuration options. /// </summary> private void InitializeConfigurationOptions() { comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x2)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x3)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x3CV2)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFCCOBIE)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFCBCA)); // TODO - how to handle IFC4? foreach (IFCFileFormat fileType in Enum.GetValues(typeof(IFCFileFormat))) { IFCFileFormatAttributes item = new IFCFileFormatAttributes(fileType); comboboxFileType.Items.Add(item); } for (int level = 0; level <= 2; level++) { IFCSpaceBoundariesAttributes item = new IFCSpaceBoundariesAttributes(level); comboboxSpaceBoundaries.Items.Add(item); } PhaseArray phaseArray = IFCCommandOverrideApplication.TheDocument.Phases; comboboxActivePhase.Items.Add(new IFCPhaseAttributes(ElementId.InvalidElementId)); // Default. foreach (Phase phase in phaseArray) { comboboxActivePhase.Items.Add(new IFCPhaseAttributes(phase.Id)); } }
/// <summary> /// Initializes the comboboxes via the configuration options. /// </summary> private void InitializeConfigurationOptions() { comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x2)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x3)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x3CV2)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFCCOBIE)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFCBCA)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC4)); foreach (IFCFileFormat fileType in Enum.GetValues(typeof(IFCFileFormat))) { IFCFileFormatAttributes item = new IFCFileFormatAttributes(fileType); comboboxFileType.Items.Add(item); } for (int level = 0; level <= 2; level++) { IFCSpaceBoundariesAttributes item = new IFCSpaceBoundariesAttributes(level); comboboxSpaceBoundaries.Items.Add(item); } PhaseArray phaseArray = IFCCommandOverrideApplication.TheDocument.Phases; comboboxActivePhase.Items.Add(new IFCPhaseAttributes(ElementId.InvalidElementId)); // Default. foreach (Phase phase in phaseArray) { comboboxActivePhase.Items.Add(new IFCPhaseAttributes(phase.Id)); } // Initialize level of detail combo box comboBoxLOD.Items.Add(Properties.Resources.DetailLevelExtraLow); comboBoxLOD.Items.Add(Properties.Resources.DetailLevelLow); comboBoxLOD.Items.Add(Properties.Resources.DetailLevelMedium); comboBoxLOD.Items.Add(Properties.Resources.DetailLevelHigh); }
/// <summary> /// Updates the configuration SpaceBoundaries when the space boundary level changed in the combobox. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">Event arguments that contains the event data.</param> private void comboboxSpaceBoundaries_SelectionChanged(object sender, SelectionChangedEventArgs e) { IFCSpaceBoundariesAttributes attributes = (IFCSpaceBoundariesAttributes)comboboxSpaceBoundaries.SelectedItem; IFCExportConfiguration configuration = GetSelectedConfiguration(); if (configuration != null) { configuration.SpaceBoundaries = attributes.Level; } }
/// <summary> /// Initializes the comboboxes via the configuration options. /// </summary> private void InitializeConfigurationOptions() { comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x2)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x3)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x3CV2)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFCCOBIE)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFCBCA)); // TODO - how to handle IFC4? foreach (IFCFileFormat fileType in Enum.GetValues(typeof(IFCFileFormat))) { IFCFileFormatAttributes item = new IFCFileFormatAttributes(fileType); comboboxFileType.Items.Add(item); } for (int level = 0; level <= 2; level++) { IFCSpaceBoundariesAttributes item = new IFCSpaceBoundariesAttributes(level); comboboxSpaceBoundaries.Items.Add(item); } }
/// <summary> /// Initializes the comboboxes via the configuration options. /// </summary> private void InitializeConfigurationOptions() { comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x2)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x3)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x3CV2)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFCCOBIE)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFCBCA)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC4)); foreach (IFCFileFormat fileType in Enum.GetValues(typeof(IFCFileFormat))) { IFCFileFormatAttributes item = new IFCFileFormatAttributes(fileType); comboboxFileType.Items.Add(item); } for (int level = 0; level <= 2; level++) { IFCSpaceBoundariesAttributes item = new IFCSpaceBoundariesAttributes(level); comboboxSpaceBoundaries.Items.Add(item); } PhaseArray phaseArray = IFCCommandOverrideApplication.TheDocument.Phases; comboboxActivePhase.Items.Add(new IFCPhaseAttributes(ElementId.InvalidElementId)); // Default. foreach (Phase phase in phaseArray) { comboboxActivePhase.Items.Add(new IFCPhaseAttributes(phase.Id)); } }
/// <summary> /// Initializes the comboboxes via the configuration options. /// </summary> private void InitializeConfigurationOptions() { comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x2)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x3)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFC2x3CV2)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFCCOBIE)); comboboxIfcType.Items.Add(new IFCVersionAttributes(IFCVersion.IFCBCA)); // TODO - how to handle IFC4? foreach (IFCFileFormat fileType in Enum.GetValues(typeof(IFCFileFormat))) { IFCFileFormatAttributes item = new IFCFileFormatAttributes(fileType); comboboxFileType.Items.Add(item); } for (int level = 0; level <= 2; level++) { IFCSpaceBoundariesAttributes item = new IFCSpaceBoundariesAttributes(level); comboboxSpaceBoundaries.Items.Add(item); } }