> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ZOSAPI.Common Namespace Reference

## Classes

| Type | Name |
| - | - |
| interface | [ICoordinateTransform](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/2025-r1-sp01/interface_z_o_s_a_p_i_1_1_common_1_1_i_coordinate_transform.md) |
| interface | [IMatrixData](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/2025-r1-sp01/interface_z_o_s_a_p_i_1_1_common_1_1_i_matrix_data.md) Methods and properties for retrieving and/or setting a 2D array of double precision data. |
| interface | [IMetadata](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/2025-r1-sp01/interface_z_o_s_a_p_i_1_1_common_1_1_i_metadata.md) |
| interface | [ISettingsData](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/2025-r1-sp01/interface_z_o_s_a_p_i_1_1_common_1_1_i_settings_data.md) Methods and interfaces for storing and retrieving user-defined settings.  All settings are referenced via a user-defined string key, and has a specific type associated with it (e.g. a single integer, array of doubles, etc.). |
| interface | [IVectorData](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/2025-r1-sp01/interface_z_o_s_a_p_i_1_1_common_1_1_i_vector_data.md) Methods and properties for retrieving and/or setting a 1D array of double precision data. |

## Enumerations

| Type | Name |
| - | - |
| enum | [ZemaxColor](#aa74995b87d76e49d5d756895353aad89) \{  [Default](#aa74995b87d76e49d5d756895353aad89a7a1920d61156abc05a60135aefe8bc67) , [Color1](#aa74995b87d76e49d5d756895353aad89a10d80f0d320a1f0d44f4d5b81d2806bf) , [Color2](#aa74995b87d76e49d5d756895353aad89ae2a7898b335d86cfce3647176ed64660) , [Color3](#aa74995b87d76e49d5d756895353aad89aa768a1a754fe61345d8268ac9cbba90b) ,  [Color4](#aa74995b87d76e49d5d756895353aad89ae2e4e0d0046eb80c1a3a6a44085448a4) , [Color5](#aa74995b87d76e49d5d756895353aad89a6a13b6d8b42dd3580ddf94cd8adddc04) , [Color6](#aa74995b87d76e49d5d756895353aad89ab5ab4d4d35fe76b5dce0d22ca018c784) , [Color7](#aa74995b87d76e49d5d756895353aad89a615211c915b857c848bb2523aebcb87b) ,  [Color8](#aa74995b87d76e49d5d756895353aad89a7564c1632afb8a6aaca05e9bd5f93515) , [Color9](#aa74995b87d76e49d5d756895353aad89a2832ee537c7101260b3d5e20c0922c9e) , [Color10](#aa74995b87d76e49d5d756895353aad89ab35c05431951c287d43b6e99dc4094ff) , [Color11](#aa74995b87d76e49d5d756895353aad89a5ca39723547d0bf4d5bdf297f4a8b5ef) ,  [Color12](#aa74995b87d76e49d5d756895353aad89a236b2a160b1d7e13ea0301fdb2e4c705) , [Color13](#aa74995b87d76e49d5d756895353aad89a7e43937d34383a1fc77337a4b7a8ba36) , [Color14](#aa74995b87d76e49d5d756895353aad89a487886d364eef41a559632d8db73d116) , [Color15](#aa74995b87d76e49d5d756895353aad89afdd652ed15bd62101b361b632185016e) ,  [Color16](#aa74995b87d76e49d5d756895353aad89a6d29615d6bea6274f0991fd3748ad057) , [Color17](#aa74995b87d76e49d5d756895353aad89a958df9f8af09ea8893d5757a22898bed) , [Color18](#aa74995b87d76e49d5d756895353aad89a0621ae2fac8718fe568084b6ece99c36) , [Color19](#aa74995b87d76e49d5d756895353aad89a66214a22dfb1ade311a75beb3db34993) ,  [Color20](#aa74995b87d76e49d5d756895353aad89a848bb011e14014088deaa18ee1e98c3b) , [Color21](#aa74995b87d76e49d5d756895353aad89a3bf709d431160b4e8ddb4c9780571e7b) , [Color22](#aa74995b87d76e49d5d756895353aad89ab0cdf0d99e99d76aecf311b7db789b20) , [Color23](#aa74995b87d76e49d5d756895353aad89adbef8b9213ec31d4044cbaf1f9663bb3) ,  [Color24](#aa74995b87d76e49d5d756895353aad89acfa2c86e5a10caaf8bf0d2cf7a853fbf) , [NoColor](#aa74995b87d76e49d5d756895353aad89a745ff66e655ea022e59182e15f301c8c)  } |
| enum | [ZemaxOpacity](#a0071f2287ecefd1f9c2486f0f36d0bcb) \{  [P100](#a0071f2287ecefd1f9c2486f0f36d0bcba9e776ce9dbca3d1ccdcc42a288bf2d16) , [P90](#a0071f2287ecefd1f9c2486f0f36d0bcba94d84f61c9b1ca10a7651203d685539a) , [P80](#a0071f2287ecefd1f9c2486f0f36d0bcba148fb42c49bedf684e19dce8ff58a5f1) , [P70](#a0071f2287ecefd1f9c2486f0f36d0bcba36ad4f3e5d60ba949427f719fe5256be) ,  [P60](#a0071f2287ecefd1f9c2486f0f36d0bcbae14abdda2f1a04dd8828c73540a1ce09) , [P50](#a0071f2287ecefd1f9c2486f0f36d0bcbae0e09951f61fed537fba9bd4673c6673) , [P40](#a0071f2287ecefd1f9c2486f0f36d0bcbaf8fad38873381c3fe36228ceda07f8cf) , [P30](#a0071f2287ecefd1f9c2486f0f36d0bcba09d6d0ff190eac94313f1dc0565780e5) ,  [P20](#a0071f2287ecefd1f9c2486f0f36d0bcba10d0da4c8a5f5ee1e90f05239ab78d03) , [P10](#a0071f2287ecefd1f9c2486f0f36d0bcbaa8c1f8495e10277718398939ece8a2ae) , [P00](#a0071f2287ecefd1f9c2486f0f36d0bcba21978e3f07166e693efbf87c4b5ee3a3)  } |
| enum | [SettingsDataType](#a3f54742c5ea7ea3449f67a65dea61289) \{  [None](#a3f54742c5ea7ea3449f67a65dea61289a6adf97f83acf6453d4a6a4b1070f3754) , [Integer](#a3f54742c5ea7ea3449f67a65dea61289aa0faef0851b4294c06f2b94bb1cb2044) , [Double](#a3f54742c5ea7ea3449f67a65dea61289ad909d38d705ce75386dd86e611a82f5b) , [Float](#a3f54742c5ea7ea3449f67a65dea61289a22ae0e2b89e5e3d477f988cc36d3272b) ,  [String](#a3f54742c5ea7ea3449f67a65dea61289a27118326006d3829667a400ad23d5d98) , [Byte](#a3f54742c5ea7ea3449f67a65dea61289aa245c3230debe5c956484ecc6fa93877) , [Boolean](#a3f54742c5ea7ea3449f67a65dea61289a27226c864bac7454a8504f8edb15d95b)  } |

## Enumeration Type Documentation

### SettingsDataType

```csharp theme={null}
enum ZOSAPI.Common.SettingsDataType
```

| Enumerator | |
| - | - |
| None | |
| Integer | |
| Double | |
| Float | |
| String | |
| Byte | |
| Boolean | |

### ZemaxColor

```csharp theme={null}
enum ZOSAPI.Common.ZemaxColor
```

| Enumerator | |
| - | - |
| Default | |
| Color1 | |
| Color2 | |
| Color3 | |
| Color4 | |
| Color5 | |
| Color6 | |
| Color7 | |
| Color8 | |
| Color9 | |
| Color10 | |
| Color11 | |
| Color12 | |
| Color13 | |
| Color14 | |
| Color15 | |
| Color16 | |
| Color17 | |
| Color18 | |
| Color19 | |
| Color20 | |
| Color21 | |
| Color22 | |
| Color23 | |
| Color24 | |
| NoColor | |

### ZemaxOpacity

```csharp theme={null}
enum ZOSAPI.Common.ZemaxOpacity
```

Usage (see [Example 17](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/2025-r1-sp01/page_ex17) for a full sample)

C#

```csharp theme={null}
 //Rectangular Volume
 //Scattering properties
 //Draw:opacity set to 50%
            IObjectTypeSettings oType_2 = Object_2.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.RectangularVolume);
            Object_2.ChangeType(oType_2);
            Object_2.ZPosition = 2;
            Object_2.Material = "N-BK7";
            IObjectRectangularVolume RectVolume2_data = Object_2.ObjectData as IObjectRectangularVolume;
            RectVolume2_data.X1HalfWidth = 12;
            RectVolume2_data.Y1HalfWidth = 12;
            RectVolume2_data.ZLength = 40;
            RectVolume2_data.X2HalfWidth = 12;
            RectVolume2_data.Y2HalfWidth = 12;
            INCEVolumePhysicsData RectVolume2_volphysdata = Object_2.VolumePhysicsData;
            RectVolume2_volphysdata.Model = VolumePhysicsModelType.AngleScattering;
            RectVolume2_volphysdata.ModelSettings._S_AngleScattering.MeanPath = 5;
            RectVolume2_volphysdata.ModelSettings._S_AngleScattering.Angle = 30;
            INCEDrawData RectVolume2_Drawdata = Object_2.DrawData;
            RectVolume2_Drawdata.Opacity = ZOSAPI.Common.ZemaxOpacity.P50;
```

C++

```csharp theme={null}
 //Rectangular Volume
 //Scattering properties
 //Draw:opacity set to 50%
    IObjectTypeSettingsPtr oType_2 = Object_2->GetObjectTypeSettings(ObjectType_RectangularVolume);
    Object_2->ChangeType(oType_2);
    Object_2->ZPosition = 2;
    Object_2->Material = "N-BK7";
    IObjectRectangularVolumePtr RectVolume2_data = Object_2->ObjectData;
    RectVolume2_data->X1HalfWidth = 12;
    RectVolume2_data->Y1HalfWidth = 12;
    RectVolume2_data->ZLength = 40;
    RectVolume2_data->X2HalfWidth = 12;
    RectVolume2_data->Y2HalfWidth = 12;
    INCEVolumePhysicsDataPtr RectVolume2_volphysdata = Object_2->VolumePhysicsData;
    RectVolume2_volphysdata->Model = VolumePhysicsModelType_AngleScattering;
    RectVolume2_volphysdata->ModelSettings->_S_AngleScattering->MeanPath = 5;
    RectVolume2_volphysdata->ModelSettings->_S_AngleScattering->Angle = 30;
    INCEDrawDataPtr RectVolume2_Drawdata = Object_2->DrawData;
    RectVolume2_Drawdata->Opacity = ZemaxOpacity_P50;
```

Matlab

```csharp theme={null}
    % Rectangular Volume
    % Scattering Properties
    % Draw:opacity set to 50%
    oType_2 = Object_2.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.RectangularVolume);
    Object_2.ChangeType(oType_2);
    Object_2.ZPosition = 2;
    Object_2.Material = 'N-BK7';
    RectVolume2_data = Object_2.ObjectData;
    RectVolume2_data.X1HalfWidth = 12;
    RectVolume2_data.Y1HalfWidth = 12;
    RectVolume2_data.ZLength = 40;
    RectVolume2_data.X2HalfWidth = 12;
    RectVolume2_data.Y2HalfWidth = 12;
    RectVolume2_volphysdata = Object_2.VolumePhysicsData;
    RectVolume2_volphysdata.Model = ZOSAPI.Editors.NCE.VolumePhysicsModelType.AngleScattering;
    RectVolume2_volphysdata.ModelSettings.S_AngleScattering_.MeanPath = 5;
    RectVolume2_volphysdata.ModelSettings.S_AngleScattering_.Angle = 30;
    RectVolume2_DrawData = Object_2.DrawData;
    RectVolume2_DrawData.Opacity = ZOSAPI.Common.ZemaxOpacity.P50;
```

Python

```csharp theme={null}
 # Rectangular Volume
 # Scattering Properties
 # Draw:opacity set to 50%
    oType_2 = Object_2.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.RectangularVolume)
    Object_2.ChangeType(oType_2)
    Object_2.ZPosition = 2
    Object_2.Material = "N-BK7"
    RectVolume2_data = Object_2.ObjectData
    RectVolume2_data.X1HalfWidth = 12
    RectVolume2_data.Y1HalfWidth = 12
    RectVolume2_data.ZLength = 40
    RectVolume2_data.X2HalfWidth = 12
    RectVolume2_data.Y2HalfWidth = 12
    RectVolume2_volphysdata = Object_2.VolumePhysicsData
    RectVolume2_volphysdata.Model = ZOSAPI.Editors.NCE.VolumePhysicsModelType.AngleScattering
    RectVolume2_volphysdata.ModelSettings._S_AngleScattering.MeanPath = 5
    RectVolume2_volphysdata.ModelSettings._S_AngleScattering.Angle = 30
    RectVolume2_DrawData = Object_2.DrawData
    RectVolume2_DrawData.Opacity = ZOSAPI.Common.ZemaxOpacity.P50
```

| Enumerator | |
| - | - |
| P100 | |
| P90 | |
| P80 | |
| P70 | |
| P60 | |
| P50 | |
| P40 | |
| P30 | |
| P20 | |
| P10 | |
| P00 | |
