Skip to main content

Zemax OpticStudio ZOS-API 2026 R1

Interface ZOSAPI::SystemData::IWavelength

Last update: 13.03.2026

Definition:

System wavelength data. This interface can be accessed via the IWavelengths interface.

Members

Properties

Property WavelengthNumber

Definition:

int ZOSAPI.SystemData.IWavelength.WavelengthNumber

Return type: int

Property IsActive

Definition:

bool ZOSAPI.SystemData.IWavelength.IsActive

Return type: bool

Property IsPrimary

Definition:

bool ZOSAPI.SystemData.IWavelength.IsPrimary

Return type: bool

Property Wavelength

Definition:

double ZOSAPI.SystemData.IWavelength.Wavelength

Usage (see Example 19 for a full sample)

C#

            // ISystemData represents the System Explorer in GUI.
            // We access options in System Explorer through ISystemData in ZOS-API
            ISystemData TheSystemData = TheSystem.SystemData;
            TheSystemData.Aperture.ApertureValue = 10;
            TheSystemData.Aperture.AFocalImageSpace = true;
            TheSystemData.Wavelengths.GetWavelength(1).Wavelength = 0.55;

C++

    // ISystemData represents the System Explorer in GUI.
    // We access options in System Explorer through ISystemData in ZOS-API
    ISystemDataPtr TheSystemData = TheSystem->SystemData;
    TheSystemData->Aperture->ApertureValue = 10;
    TheSystemData->Aperture->AFocalImageSpace = true;
    TheSystemData->Wavelengths->GetWavelength(1)->Wavelength = 0.55;

Matlab

    % ISystemData represents the System Explorer in GUI.
    % We access options in System Explorer through ISystemData in ZOS-API
    TheSystemData = TheSystem.SystemData;
    TheSystemData.Aperture.ApertureValue = 10;
    TheSystemData.Aperture.AFocalImageSpace = true;
    TheSystemData.Wavelengths.GetWavelength(1).Wavelength = 0.55;

Python

    # ISystemData represents the System Explorer in GUI.
    # We access options in System Explorer through ISystemData in ZOS-API
    TheSystemData = TheSystem.SystemData
    TheSystemData.Aperture.ApertureValue = 10
    TheSystemData.Aperture.AFocalImageSpace = True
    TheSystemData.Wavelengths.GetWavelength(1).Wavelength = 0.55

Return type: double

Property Weight

Definition:

double ZOSAPI.SystemData.IWavelength.Weight

Return type: double

Public functions

Function MakePrimary

void ZOSAPI.SystemData.IWavelength.MakePrimary()

Return type: void

Connect with Ansys