Skip to main content

ZOS-API- How to set operands in Multi-Configuration Editor?

  • September 30, 2019
  • 0 replies
  • 584 views

Julia
Fully Spectral
Forum|alt.badge.img+2
MCoperand1= TheSystem.MCE.GetOperandAt(1);
MCoperand1.ChangeType(ZOSAPI.Editors.MCE.MultiConfigOperandType. XFIE);
MCoperand1.Param1 = 1;
MCoperand1.GetOperandCell(1).DoubleValue = 10.0;   
MCoperand1.GetOperandCell(2).DoubleValue = 20.0;
 

The above code set multi configuration operand#1 as XFIE.

TheSystem.MCE.InsertConfiguration(2, true);
TheSystem.MCE.DeleteConfiguration(2);
TheSystem.MCE.MakeSingleConfiguration();
TheSystem.MCE.SetCurrentConfiguration(1);
TheSystem.MCE.CurrentConfiguration;
TheSystem.MCE.NumberOfConfigurations;

In the above code:

  • Insert a new configuration at config#2 with pickups from the first configuraiton
  • Delete config#2
  • Delete all the multi-configuration data, leaving the lens as a single configuration system in whatever configuration is active at the time this tool is used.
  • Set the currently active configuration for the system
  • Get the current configuration number
  • Get the total number of configurations
Did this topic help you find an answer to your question?

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings