ZOSAPI.SystemData.ISystemData Interface Reference
Last update: 16.07.2025Interfaces and methods for changing all System Explorer data. This interface can be accessed via the IOpticalSystem interface. More...
Properties | |
| ISDApertureData | Aperture [get] |
| IWavelengths | Wavelengths [get] |
| IFields | Fields [get] |
| ISDEnvironmentData | Environment [get] |
| ISDPolarizationData | Polarization [get] |
| ISDAdvancedData | Advanced [get] |
| ISDRayAimingData | RayAiming [get] |
| ISDMaterialCatalogData | MaterialCatalogs [get] |
| ISDTitleNotes | TitleNotes [get] |
| ISDFiles | Files [get] |
| ISDUnitsData | Units [get] |
| ISDNonSeqData | NonSequentialData [get] |
| ISDNamedFilters | NamedFiltersData [get] |
Detailed Description
Interfaces and methods for changing all System Explorer data. This interface can be accessed via the IOpticalSystem interface.
Property Documentation
◆ Advanced
|
get |
◆ Aperture
|
get |
◆ Environment
|
get |
◆ Fields
|
get |
◆ Files
|
get |
◆ MaterialCatalogs
|
get |
◆ NamedFiltersData
|
get |
◆ NonSequentialData
|
get |
◆ Polarization
|
get |
◆ RayAiming
|
get |
◆ TitleNotes
|
get |
◆ Units
|
get |
Usage (see Example 11 for a full sample)
C#
// Set system lens units to inches, scale all values with Scale Lens tool
// For demonstration only. This file is new, so it has default units mm.
ZemaxSystemUnits unit = TheSystemData.Units.LensUnits;
// Open Scale Lens tool
ScaleLens = TheSystem.Tools.OpenScale();
// Apply Tool Settings
ScaleLens.ScaleByUnits = true;
ScaleLens.ScaleToUnit = ScaleToUnits.Inches;
ScaleLens.RunAndWaitForCompletion();
ScaleLens.Close();
C++
// Set system lens units to inches, scale all values with Scale Lens tool
// For demonstration only. This file is new, so it has default units mm.
ZemaxSystemUnits unit = TheSystemData->Units->LensUnits;
// Open Scale Lens tool
IScalePtr ScaleLens = TheSystem->Tools->OpenScale();
// Apply Tool Settings
ScaleLens->ScaleByUnits = true;
ScaleLens->ScaleToUnit = ScaleToUnits_Inches;
ISystemToolPtr baseTool = ScaleLens;
baseTool->RunAndWaitForCompletion();
baseTool->Close();
Matlab
% Set system lens units to inches, scale all values with Scale Lens tool
unit = TheSystemData.Units.LensUnits; % For demonstration only. This file is new, so it has default units mm.
ScaleLens = TheSystem.Tools.OpenScale(); % Open Scale Lens tool
% Apply Tool Settings
ScaleLens.ScaleByUnits = true;
ScaleLens.RunAndWaitForCompletion();
ScaleLens.Close();
Definition: Tools.cs:704
Definition: FileSource.cs:4
The ZOSAPI namespace contains classes for initially connecting to zemax. See also ZOSAPI_Connection,...
Definition: IAS_FieldCurvatureAndDistortion.cs:5
Python
# Set system lens units to inches, scale all values with Scale Lens tool
unit = TheSystemData.Units.LensUnits # For demonstration only. This file is new, so it has default units mm.
ScaleLens = TheSystem.Tools.OpenScale() # Open Scale Lens tool
# Apply Tool Settings
ScaleLens.ScaleByUnits = True
ScaleLens.ScaleToUnit = 2 # 0=millimeters; 1=centimeters; 2=inches; 3=meters
# Cast to ISystemTool interface to gain access to Run
ScaleLens.RunAndWaitForCompletion()
ScaleLens.Close()
- Examples
- CSharpStandalone_11_Basic_Seq.cs.
◆ Wavelengths
|
get |