Namespaces
| Type | Name |
|---|---|
| namespace | FileManager |
| namespace | General |
| namespace | Layouts |
| namespace | Optimization |
| namespace | OptimizationTools |
| namespace | RayTrace |
| namespace | Tolerancing |
Classes
| Type | Name |
|---|---|
| interface | IAPIUtilities |
| interface | IConvertToNSCGroup Interfaces and methods for converting the sequential surfaces to a non-sequential group. This interface can be accessed via the IOpticalSystemTools interface. |
| interface | ICriticalRaysetGenerator Interfaces and methods for generating a ‘critical rayset’; these rays can be used after converting to non-sequential in order to verify that the conversion did not fundamentally alter the geometries. This interface can be accessed via the IOpticalSystemTools interface. |
| interface | IDesignLockdown Interfaces and methods for validating a sequential design, prior to manufacturing or conversion to non-sequential. This interface can be accessed via the IOpticalSystemTools interface. |
| interface | IExportToSpeosLensSystem Interface to access the “Export to Speos Lens System” tool. This interface can be accessed via the IOpticalSystemTools interface. |
| interface | IExportToSpeosWhitebox |
| interface | IFileManager |
| interface | IHPCSettings |
| interface | IInternalBirefringenceData |
| interface | IInternalBirefringenceParameter |
| interface | IInternalTransmissionData |
| interface | IInternalTransmissionParameter |
| interface | ILayouts |
| interface | IMaterialsCatalog |
| interface | IMFCalculator Interfaces and methods for calculating the current Merit Function value. This interface can be accessed via the IOpticalSystemTools interface. |
| interface | IOpticalSystemTools Methods to run various system-wide tools. This interface can be accessed via the IOpticalSystem interface. Note that only one ISystemTool can be open at a time; the previous tool must be closed using ISystemTool.Close before a new one can be opened. |
| interface | IShadedModelTriangleList |
| interface | IShadedModelVisualizationExport Interfaces and methods for getting a set of triangles for selected parts of the system. This interface can be accessed via the IOpticalSystemTools interface. |
| interface | ISystemTool Base interface for all system tools. See IOpticalSystemTools for access to specific tools. |
Enumerations
| Type | Name |
|---|---|
| enum | RayPatternOption { XyFan = 0 , XFan = 1 , YFan = 2 , ChiefAndRing = 3 , List = 4 , Grid = 6 , ChiefAndMarginals = 8 } |
| enum | CriticalRayType { Chief = 0 , Marginal = 1 , Grid = 2 , Ring = 3 , Y_Fan = 4 , X_Fan = 5 , XY_Fan = 6 , List = 7 } |
| enum | MaterialFormulas { Schott = 1 , Sellmeier1 = 2 , Herzberger = 3 , Sellmeier2 = 4 , Conrady = 5 , Sellmeier3 = 6 , Handbook1 = 7 , Handbook2 = 8 , Sellmeier4 = 9 , Extended = 10 , Sellmeier5 = 11 , Extended2 = 12 , Extended3 = 13 } |
| enum | MaterialStatuses { Standard = 0 , Preferred = 1 , Obsolete = 2 , Special = 3 , Melt = 4 } |
| enum | VertexOrder { First , Second , Third } |
| enum | HPCEnvironments { OnPremise = 0 , AWSKubernetes , AzureKubernetes } |
| enum | HPCNodeSize { Default = 0 , Tiny = 1 , Small = 2 , Medium = 3 , Large = 4 , XLarge = 5 } |
| enum | HPCRunState { NotRunning = 0 , Initializing , ClusterAllocating , UploadingData , Queued , RunStarting , WaitingForResults , Complete } |
| enum | RunStatus { Completed , FailedToStart , TimedOut , InvalidTimeout } |
Detailed Description
Usage (see Example 15 for a full sample) C# // remove all variables and add a F# solve on last surface radius
ILensDataEditor TheLDE = TheSystem.LDE;
IOpticalSystemTools tools = TheSystem.Tools;
tools.RemoveAllVariables();
ILDERow Surface_Last = TheLDE.GetSurfaceAt(TheLDE.NumberOfSurfaces - 2);
ISolveData Solver = Surface_Last.RadiusCell.CreateSolveType(ZOSAPI.Editors.SolveType.FNumber);
Solver._S_FNumber.FNumber = 3.1415;
Surface_Last.RadiusCell.SetSolveData(Solver);
SampleFile = System.IO.Path.Combine(TheApplication.SamplesDir, @"API\CS\e15_Seq_Optimization\OptimizedFile1.zos");
TheSystem.SaveAs(SampleFile);
// remove all variables and add a F# solve on last surface radius
ILensDataEditorPtr TheLDE = TheSystem->LDE;
//IOpticalSystemTools
IOpticalSystemToolsPtr tools = TheSystem->Tools;
tools->RemoveAllVariables();
ILDERowPtr Surface_Last = TheLDE->GetSurfaceAt(TheLDE->NumberOfSurfaces - 2);
ISolveDataPtr Solver = Surface_Last->RadiusCell->CreateSolveType(SolveType::SolveType_FNumber);
Solver->_S_FNumber->FNumber = 3.1415;
Surface_Last->RadiusCell->SetSolveData(Solver);
SampleFile = _bstr_t(TheApplication->SamplesDir) + "\\API\\\Seq_Optimization\\\OptimizedFile1.zos";
TheSystem->SaveAs(SampleFile);
% remove all variables and add a F# solve on last surface radius
TheLDE = TheSystem.LDE;
tools = TheSystem.Tools;
tools.RemoveAllVariables();
Surface_Last = TheLDE.GetSurfaceAt(TheLDE.NumberOfSurfaces - 2);
Solver = Surface_Last.RadiusCell.CreateSolveType(ZOSAPI.Editors.SolveType.FNumber);
Solver.S_FNumber_.FNumber = 3.1415;
Surface_Last.RadiusCell.SetSolveData(Solver);
SampleFile = System.String.Concat(TheApplication.SamplesDir, '\API\Matlab\e15_Seq_Optimization\OptimizedFile1.zos');
TheSystem.SaveAs(SampleFile);
# remove all variables and add a F# solve on last surface radius
TheLDE = TheSystem.LDE
#IOpticalSystemTools
tools = TheSystem.Tools
tools.RemoveAllVariables()
Surface_Last = TheLDE.GetSurfaceAt(TheLDE.NumberOfSurfaces - 2)
Solver = Surface_Last.RadiusCell.CreateSolveType(ZOSAPI.Editors.SolveType.FNumber)
Solver._S_FNumber.FNumber = 3.1415
Surface_Last.RadiusCell.SetSolveData(Solver)
SampleFile = TheApplication.SamplesDir + '\\API\\Python\\e15_Seq_Optimization\\OptimizedFile1.zos'
TheSystem.SaveAs(SampleFile)
Enumeration Type Documentation
CriticalRayType
enum ZOSAPI.Tools.CriticalRayType
HPCEnvironments
enum ZOSAPI.Tools.HPCEnvironments
HPCNodeSize
enum ZOSAPI.Tools.HPCNodeSize
HPCRunState
enum ZOSAPI.Tools.HPCRunState
MaterialFormulas
enum ZOSAPI.Tools.MaterialFormulas
MaterialStatuses
enum ZOSAPI.Tools.MaterialStatuses
RayPatternOption
enum ZOSAPI.Tools.RayPatternOption
RunStatus
enum ZOSAPI.Tools.RunStatus
VertexOrder
enum ZOSAPI.Tools.VertexOrder