ZOSAPI.SystemData Namespace Reference
Last update: 17.07.2025Classes | |
| interface | IField |
| System field data. This interface can be accessed via the IFields interface. More... | |
| interface | IFields |
| System Explorer - Fields Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDAdvancedData |
| System Explorer - Advanced Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDApertureData |
| System Explorer - Aperture Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDEnvironmentData |
| System Explorer - Environment Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDFiles |
| System Explorer - Files Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDMaterialCatalogData |
| System Explorer - Material Catalogs Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDNamedFilters |
| System Explorer - Named Filters Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDNonSeqData |
| System Explorer - Non-Sequential Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDPolarizationData |
| System Explorer - Polarization Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDRayAimingData |
| System Explorer - Ray Aiming Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDTitleNotes |
| System Explorer - Notes Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISDUnitsData |
| System Explorer - Units Data. This interface can be accessed via the ISystemData interface. More... | |
| interface | ISurfaceSelection |
| interface | ISystemData |
| Interfaces and methods for changing all System Explorer data. This interface can be accessed via the IOpticalSystem interface. More... | |
| interface | IWavelength |
| System wavelength data. This interface can be accessed via the IWavelengths interface. More... | |
| interface | IWavelengths |
| System Explorer - Wavelengths Data. This interface can be accessed via the ISystemData interface. More... | |
Enumeration Type Documentation
◆ FieldColumn
◆ FieldNormalizationType
◆ FieldPattern
◆ FieldType
◆ FNumberComputationType
◆ HuygensIntegralSettings
◆ ParaxialRaysSetting
◆ PolarizationMethod
Usage (see Example 12 for a full sample)
C#
// Change polarization axis reference to be Y
ZOSAPI.SystemData.ISDPolarizationData sysPol = TheSystem.SystemData.Polarization;
sysPol.Method = ZOSAPI.SystemData.PolarizationMethod.YAxisMethod;
System Explorer - Polarization Data. This interface can be accessed via the ISystemData interface.
Definition: InterfacesSE.cs:438
Definition: InterfacesSE.cs:11
The ZOSAPI namespace contains classes for initially connecting to zemax. See also ZOSAPI_Connection,...
Definition: IAS_FieldCurvatureAndDistortion.cs:5
C++
// Change polarization axis reference to be Y
ZOSAPI_Interfaces::ISDPolarizationDataPtr sysPol = TheSystem->SystemData->Polarization;
sysPol->Method = ZOSAPI_Interfaces::PolarizationMethod_YAxisMethod;
Matlab
% Change polarization axis reference to be Y
sysPol = TheSystem.SystemData.Polarization;
sysPol.Method = ZOSAPI.SystemData.PolarizationMethod.YAxisMethod;
Python
# Change polarization axis reference to be Y
sysPol = TheSystem.SystemData.Polarization
sysPol.Method = ZOSAPI.SystemData.PolarizationMethod.YAxisMethod
| Enumerator | |
|---|---|
| XAxisMethod | |
| YAxisMethod | |
| ZAxisMethod | |
◆ QuadratureSteps
◆ RayAimingMethod
◆ RayAimingType
◆ ReferenceOPDSetting
◆ WavelengthPreset
Usage (see Example 01 for a full sample)
C#
// Wavelength preset
bool slPreset = TheSystemData.Wavelengths.SelectWavelengthPreset(WavelengthPreset.d_0p587);
C++
// Wavelength preset
bool slPreset = TheSystemData->Wavelengths->SelectWavelengthPreset(WavelengthPreset_d_0p587);
Matlab
% Wavelength preset
slPreset = TheSystemData.Wavelengths.SelectWavelengthPreset(ZOSAPI.SystemData.WavelengthPreset.d_0p587);
Python
# Wavelength preset
slPreset = TheSystemData.Wavelengths.SelectWavelengthPreset(ZOSAPI.SystemData.WavelengthPreset.d_0p587)
◆ ZemaxAfocalModeUnits
◆ ZemaxAnalysisUnits
◆ ZemaxApertureType
◆ ZemaxApodizationType
Usage (see Example 11 for a full sample)
C#
// Changing System Explorer Settings
// Set Aperture
ISystemData TheSystemData = TheSystem.SystemData;
TheSystemData.Aperture.ApertureValue = 20;
// Set Apodization Type to Gaussian, and set apodization factor to 1
TheSystemData.Aperture.ApodizationType = ZemaxApodizationType.Gaussian;
TheSystemData.Aperture.ApodizationFactor = 1;
// Set Wavelength
bool AddCatalog(string catalog)
Adds the specified material to the system.
Interfaces and methods for changing all System Explorer data. This interface can be accessed via the ...
Definition: InterfacesSE.cs:275
ISDMaterialCatalogData MaterialCatalogs
Definition: InterfacesSE.cs:283
bool SelectWavelengthPreset(WavelengthPreset preset)
Replaces all system wavelengths with a preset definition.
C++
// Changing System Explorer Settings
// Set Aperture
ISystemDataPtr TheSystemData = TheSystem->SystemData;
TheSystemData->Aperture->ApertureValue = 20;
ISDMaterialCatalogDataPtr(TheSystem->SystemData->MaterialCatalogs)->AddCatalog("SCHOTT");
// Set Apodization Type to Gaussian, and set apodization factor to 1
TheSystemData->Aperture->ApodizationType = ZemaxApodizationType_Gaussian;
TheSystemData->Aperture->ApodizationFactor = 1;
// Set Wavelength
TheSystemData->Wavelengths->SelectWavelengthPreset(WavelengthPreset_FdC_Visible);
Matlab
% Changing System Explorer Settings
% Set Aperture
TheSystemData = TheSystem.SystemData;
TheSystemData.Aperture.ApertureValue = 20;
TheSystem.SystemData.MaterialCatalogs.AddCatalog('SCHOTT');
% Set Apodization Type to Gaussian, and set apodization factor to 1
TheSystemData.Aperture.ApodizationType = ZOSAPI.SystemData.ZemaxApodizationType.Gaussian;
TheSystemData.Aperture.ApodizationFactor = 1;
% Set Wavelength
TheSystemData.Wavelengths.SelectWavelengthPreset(ZOSAPI.SystemData.WavelengthPreset.FdC_Visible);
Python
# Changing System Explorer Settings
# Set Aperture
TheSystemData = TheSystem.SystemData
TheSystemData.Aperture.ApertureValue = 20
TheSystem.SystemData.MaterialCatalogs.AddCatalog('SCHOTT')
# Set Apodization Type to Gaussian, and set apodization factor to 1
TheSystemData.Aperture.ApodizationType = 1 # ApodizationType 0 = uniform; 1 = gaussian; 2 = Cosine Cubed
TheSystemData.Aperture.ApodizationFactor = 1
# Set Wavelength
TheSystemData.Wavelengths.SelectWavelengthPreset(ZOSAPI.SystemData.WavelengthPreset.FdC_Visible)
| Enumerator | |
|---|---|
| Uniform | |
| Gaussian | |
| CosineCubed | |
◆ ZemaxMTFUnits
◆ ZemaxSourceUnits
◆ ZemaxSystemUnits
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:696
Definition: FileSource.cs:4
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()
| Enumerator | |
|---|---|
| Millimeters | |
| Centimeters | |
| Inches | |
| Meters | |