ZOSAPI.Editors.MCE.IMultiConfigEditor Interface Reference
Last update: 17.07.2025This interface defines all properties and methods needed to interact with the Multiple Configuration Editor. This interface can be accessed via the IOpticalSystem interface. More...

Public Member Functions | |
| bool | SetCurrentConfiguration (int ConfigurationNumber) |
| Sets the currently active configuration for the system (1 to NumberOfConfigurations). | |
| bool | DeleteConfiguration (int ConfigurationNumber) |
| Deletes the specified configuration (1 to NumberOfConfigurations). | |
| bool | DeleteAllConfigurations () |
| Deletes all but one configuration from the system. | |
| bool | InsertConfiguration (int ConfigurationNumber, bool withPickups) |
| Inserts a new configuration at the specified index, optionally with pickups. | |
| bool | AddConfiguration (bool withPickups) |
| Adds a new, last configuration. | |
| void | MakeSingleConfiguration () |
Removes all configurations and operands. Note that this is the same as MakeSingleConfigurationOpt(bool) with an argument of false. | |
| void | MakeSingleConfigurationOpt (bool deleteMFEOperands) |
| Removes all configurations and operands. | |
| bool | NextConfiguration () |
| Changes to the next configuration. | |
| bool | PrevConfiguration () |
| Changes to the previous configuration. | |
| IMCERow | GetOperandAt (int OperandNumber) |
| Gets the specified operand data. | |
| IMCERow | InsertNewOperandAt (int OperandNumber) |
| Inserts the a new operand at the specified location. | |
| IMCERow | AddOperand () |
| Adds a new operand to the end of the editor. | |
| bool | RemoveOperandAt (int OperandNumber) |
| Removes the specified operand. | |
| int | RemoveOperandsAt (int OperandNumber, int numOperands) |
| Removes one or more operands at the specified position. | |
| bool | ShowMCE () |
| Shows this editor in the UI. Note that this only has an effect if the IOpticalSystem.Mode is ZOSAPI_Mode.Plugin. | |
| void | HideMCE () |
| Closes this editor in the UI. Note that this only has an effect if the IOpticalSystem.Mode is ZOSAPI_Mode.Plugin. | |
| int | CopyOperands (int fromOperandNumber, int NumberOfOperands, int toOperandNumber) |
| Copy and paste the specified number of operands from one location to another. Note that it is okay for the source and destination to overlap. | |
| int | CopyOperandsFrom (IMultiConfigEditor fromEditor, int fromOperandNumber, int NumberOfOperands, int toOperandNumber) |
| Copy and paste the specified number of operands from one location (in the specified system) to another location (in this system). Note that it is okay for the source and destination to overlap. | |
| void | RunTool_MakeThermal (int existingConfigurationIndex, int numberOfThemalConfigs, double minTemp, double maxTemp, bool sortBySurface) |
| IMessage | RunTool_MakeConjugate (int referenceConfig, int objectSurface, int stopSurface, int imageSurface) |
| Runs the tool Make Conjugate to create a subset of the optical system which models imaging between any two conjugate surfaces as a new configuration. | |
| IMessage | RunTool_AddAllData (int numberOfConfig, bool sortBySurface, bool systemApertureData, bool fieldData, bool wavelengthData, bool surfaceData) |
| Runs the tool Add All Data to add all data currently in the system to the MCE. | |
Public Member Functions inherited from ZOSAPI.Editors.IEditor | |
| IEditorRow | GetRowAt (int pos) |
| Gets the row at the specified index (0 to NumberOfRows-1). | |
| IEditorRow | InsertRowAt (int pos) |
| Inserts a new row at the specified index (0 to NumberOfRows). Note that some editors - such as the Lens Data Editor may not allow inserting new rows before the first row. | |
| IEditorRow | AddRow () |
| Adds a new row at the end of the editor. | |
| bool | DeleteRowAt (int pos) |
| Deletes a row at the specified index (0 to NumberOfRows-1). Note that all editors require at least one row, and some editors may require more than that. | |
| int | DeleteRowsAt (int pos, int numberOfRows) |
| Deletes one or more rows at the specified index (0 to NumberOfRows-1). | |
| int | DeleteAllRows () |
| Deletes all rows from the current editor. | |
| bool | ShowEditor () |
| Shows this editor in the UI. Note that this only has an effect if the IOpticalSystem.Mode is ZOSAPI_Mode.Plugin. | |
| void | HideEditor () |
| Closes this editor in the UI. Note that this only has an effect if the IOpticalSystem.Mode is ZOSAPI_Mode.Plugin. | |
Properties | |
| int | RowToOperandOffset [get] |
| Offset from a row index to operand index (always 1). | |
| int | NumberOfOperands [get] |
| Gets the total number of operands in the current system. | |
| int | FirstConfiguration [get] |
| Gets the first configuration number. | |
| int | LastConfiguration [get] |
| Gets the last configuration number. | |
| int | NumberOfConfigurations [get] |
| Gets the total number of configurations. | |
| int | CurrentConfiguration [get] |
| Gets the current configuration number. | |
Properties inherited from ZOSAPI.Editors.IEditor | |
| EditorType | Editor [get] |
| Gets the type of this editor instance. | |
| int | NumberOfRows [get] |
| Gets the number of rows in this editor. Note that this referes to surfaces, objects, or operands depending on editor type. | |
| int | MinColumn [get] |
| The minimum column index that can be used in calls to IEditorRow.GetCellAt for any IEditorRow retrieved from this editor. | |
| int | MaxColumn [get] |
| The maximum column index that can be used in calls to IEditorRow.GetCellAt for any IEditorRow retrieved from this editor. | |
Detailed Description
This interface defines all properties and methods needed to interact with the Multiple Configuration Editor. This interface can be accessed via the IOpticalSystem interface.
Member Function Documentation
◆ AddConfiguration()
| bool ZOSAPI.Editors.MCE.IMultiConfigEditor.AddConfiguration | ( | bool | withPickups | ) |
Adds a new, last configuration.
Usage (see Example 18 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
withPickups if set to trueadd pickups from the previous configuration.
- Returns
◆ AddOperand()
| IMCERow ZOSAPI.Editors.MCE.IMultiConfigEditor.AddOperand | ( | ) |
Adds a new operand to the end of the editor.
- Returns
Usage (see Example 18 for a full sample)
C#
C++
Matlab
Python
◆ CopyOperands()
| int ZOSAPI.Editors.MCE.IMultiConfigEditor.CopyOperands | ( | int | fromOperandNumber, |
| int | NumberOfOperands, | ||
| int | toOperandNumber | ||
| ) |
Copy and paste the specified number of operands from one location to another.
Note that it is okay for the source and destination to overlap.
- Parameters
-
fromOperandNumber First operand number to copy (1 to NumberOfOperands). NumberOfOperands The number of operands to copy. toOperandNumber Row to start inserting the operands (1 to NumberOfOperands+1).
- Returns
- The number of operands actually copied.
◆ CopyOperandsFrom()
| int ZOSAPI.Editors.MCE.IMultiConfigEditor.CopyOperandsFrom | ( | IMultiConfigEditor | fromEditor, |
| int | fromOperandNumber, | ||
| int | NumberOfOperands, | ||
| int | toOperandNumber | ||
| ) |
Copy and paste the specified number of operands from one location (in the specified system) to another location (in this system). Note that it is okay for the source and destination to overlap.
- Parameters
-
fromEditor System to copy the operands from. Note that the NumberOfConfigurations must the same as the current system. fromOperandNumber First operand number to copy (1 to NumberOfOperands). NumberOfOperands The number of operands to copy. toOperandNumber To operand number (1 to NumberOfOperands+1).
- Returns
- The number of operands actually copied.
◆ DeleteAllConfigurations()
| bool ZOSAPI.Editors.MCE.IMultiConfigEditor.DeleteAllConfigurations | ( | ) |
Deletes all but one configuration from the system.
- Returns
◆ DeleteConfiguration()
| bool ZOSAPI.Editors.MCE.IMultiConfigEditor.DeleteConfiguration | ( | int | ConfigurationNumber | ) |
Deletes the specified configuration (1 to NumberOfConfigurations).
- Parameters
-
ConfigurationNumber The configuration to delete.
- Returns
◆ GetOperandAt()
| IMCERow ZOSAPI.Editors.MCE.IMultiConfigEditor.GetOperandAt | ( | int | OperandNumber | ) |
Gets the specified operand data.
- Parameters
-
OperandNumber The operand number (1 to NumberOfOperands).
- Returns
Usage (see Example 18 for a full sample)
C#
C++
Matlab
Python
◆ HideMCE()
| void ZOSAPI.Editors.MCE.IMultiConfigEditor.HideMCE | ( | ) |
Closes this editor in the UI. Note that this only has an effect if the IOpticalSystem.Mode is ZOSAPI_Mode.Plugin.
- Returns
◆ InsertConfiguration()
| bool ZOSAPI.Editors.MCE.IMultiConfigEditor.InsertConfiguration | ( | int | ConfigurationNumber, |
| bool | withPickups | ||
| ) |
Inserts a new configuration at the specified index, optionally with pickups.
- Parameters
-
ConfigurationNumber The configuration number to insert at (1 to NumberOfConfigurations+1). withPickups If set to truethe next configuration will pickup values from the inserted configuration.
- Returns
◆ InsertNewOperandAt()
| IMCERow ZOSAPI.Editors.MCE.IMultiConfigEditor.InsertNewOperandAt | ( | int | OperandNumber | ) |
Inserts the a new operand at the specified location.
- Parameters
-
OperandNumber The operand number (1 to NumberOfOperands+1).
- Returns
◆ MakeSingleConfiguration()
| void ZOSAPI.Editors.MCE.IMultiConfigEditor.MakeSingleConfiguration | ( | ) |
Removes all configurations and operands. Note that this is the same as MakeSingleConfigurationOpt(bool) with an argument of false.
◆ MakeSingleConfigurationOpt()
| void ZOSAPI.Editors.MCE.IMultiConfigEditor.MakeSingleConfigurationOpt | ( | bool | deleteMFEOperands | ) |
Removes all configurations and operands.
- Parameters
-
deleteMFEOperands if set to truemerit function operands for delete configurations will be removed, else MFE operands will remain.
◆ NextConfiguration()
| bool ZOSAPI.Editors.MCE.IMultiConfigEditor.NextConfiguration | ( | ) |
Changes to the next configuration.
- Returns
trueif there is another available configuration; otherwise,false.
◆ PrevConfiguration()
| bool ZOSAPI.Editors.MCE.IMultiConfigEditor.PrevConfiguration | ( | ) |
Changes to the previous configuration.
- Returns
trueif there is another available configuration; otherwise,false.
◆ RemoveOperandAt()
| bool ZOSAPI.Editors.MCE.IMultiConfigEditor.RemoveOperandAt | ( | int | OperandNumber | ) |
Removes the specified operand.
- Parameters
-
OperandNumber The operand number (1 to NumberOfOperands).
- Returns
◆ RemoveOperandsAt()
| int ZOSAPI.Editors.MCE.IMultiConfigEditor.RemoveOperandsAt | ( | int | OperandNumber, |
| int | numOperands | ||
| ) |
Removes one or more operands at the specified position.
- Parameters
-
OperandNumber The starting operand number (1 to NumberOfOperands). numOperands The number of operands to remove.
- Returns
◆ RunTool_AddAllData()
| IMessage ZOSAPI.Editors.MCE.IMultiConfigEditor.RunTool_AddAllData | ( | int | numberOfConfig, |
| bool | sortBySurface, | ||
| bool | systemApertureData, | ||
| bool | fieldData, | ||
| bool | wavelengthData, | ||
| bool | surfaceData | ||
| ) |
Runs the tool Add All Data to add all data currently in the system to the MCE.
- Parameters
-
numberOfConfig The number of configurations (1 to 160). sortBySurface If set to true, the data will be sorted by surface.systemApertureData If set to true, the System Aperture Data will be included.fieldData If set to true, the Field Data will be included.wavelengthData If set to true, the WaveLength Data will be included.surfaceData If set to true, the Surface Data will be included.
- Returns
- Error message if any occurs.
◆ RunTool_MakeConjugate()
| IMessage ZOSAPI.Editors.MCE.IMultiConfigEditor.RunTool_MakeConjugate | ( | int | referenceConfig, |
| int | objectSurface, | ||
| int | stopSurface, | ||
| int | imageSurface | ||
| ) |
Runs the tool Make Conjugate to create a subset of the optical system which models imaging between any two conjugate surfaces as a new configuration.
- Parameters
-
referenceConfig The configuration to be used (0 to NumberOfConfigurations+1)./>"/></param> <param name="objectSurface">The object surface from the list of all surfaces (0 to <see cref="OS.LDE.getListOfAllSurfaces().Count")./></param> <param name="stopSurface">The stop surface from the list of all surfaces (0 to <see cref="OS.LDE.getListOfAllSurfaces().Count")./></param> <param name="imageSurface">The image surface from the list of all surfaces (0 to <see cref="OS.LDE.getListOfAllSurfaces().Count")./>
- Returns
- Error message if any occurs.
◆ RunTool_MakeThermal()
| void ZOSAPI.Editors.MCE.IMultiConfigEditor.RunTool_MakeThermal | ( | int | existingConfigurationIndex, |
| int | numberOfThemalConfigs, | ||
| double | minTemp, | ||
| double | maxTemp, | ||
| bool | sortBySurface | ||
| ) |
- Parameters
-
existingConfigurationIndex numberOfThemalConfigs minTemp maxTemp sortBySurface
◆ SetCurrentConfiguration()
| bool ZOSAPI.Editors.MCE.IMultiConfigEditor.SetCurrentConfiguration | ( | int | ConfigurationNumber | ) |
Sets the currently active configuration for the system (1 to NumberOfConfigurations).
Usage (see Example 18 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
ConfigurationNumber The configuration number.
- Returns
trueif the configuration was successfully changed; otherwise,false.
◆ ShowMCE()
| bool ZOSAPI.Editors.MCE.IMultiConfigEditor.ShowMCE | ( | ) |
Shows this editor in the UI. Note that this only has an effect if the IOpticalSystem.Mode is ZOSAPI_Mode.Plugin.
- Returns
Property Documentation
◆ CurrentConfiguration
|
get |
Gets the current configuration number.
The current configuration.
◆ FirstConfiguration
|
get |
Gets the first configuration number.
The first configuration.
◆ LastConfiguration
|
get |
Gets the last configuration number.
The last configuration.
◆ NumberOfConfigurations
|
get |
Gets the total number of configurations.
The number of configurations.
◆ NumberOfOperands
|
get |
Gets the total number of operands in the current system.
The number of operands.
◆ RowToOperandOffset
|
get |
Offset from a row index to operand index (always 1).
The row to operand offset.
Public Member Functions inherited from