ZOSAPI.Tools.General.IExportCAD Interface Reference
Last update: 17.07.2025Interfaces and methods for exporting the current system to various CAD formats. This interface can be accessed via the IOpticalSystemTools interface. More...

Public Member Functions | |
| void | SetWavelengthAll () |
| void | SetFieldAll () |
| void | SetSingleConfiguration (int ConfigurationNumber) |
| Set it to export a single configuration of the current system. | |
| void | SetCurrentConfiguration () |
| void | SetConfigurationAllByLayer () |
| void | SetConfigurationAllByFile () |
| void | SetConfigurationAllAtOnce () |
Public Member Functions inherited from ZOSAPI.Tools.ISystemTool | |
| bool | Run () |
| Start the tool. Note that for synchronous tools (see IsAsynchronous), this call will block until completion. If it is asynchronous it will start running but return immediately. | |
| bool | RunAndWaitForCompletion () |
| Sames as calling Run followed by WaitForCompletion. | |
| bool | WaitForCompletion () |
| Waits for the asynchronous tool to complete. | |
| bool | Cancel () |
| Cancels the currently running asynchronous tool. | |
| bool | Close () |
| Closes this tool and frees up and associated resources. | |
| RunStatus | WaitWithTimeout (double timeOutSeconds) |
| Waits for the currently running tool to complete, with a specified time out value. Note that if the timeout is exceeded this method will return, however the tool will continue to run. Also note that this method will not start the tool running if it is not already. | |
| RunStatus | RunAndWaitWithTimeout (double timeOutSeconds) |
| Starts the tool running, and waits for it to complete with the specified timeout value. Note that if the timeout is exceeded this method will return, however the tool will continue to run. | |
Properties | |
| int | FirstSurface [get, set] |
| Gets or sets the first surface to include in the CAD file (0 to ZOSAPI.Editors.LDE.ILensDataEditor.NumberOfSurfaces-2). | |
| int | LastSurface [get, set] |
| Gets or sets the last surface to include in the CAD file (1 to ZOSAPI.Editors.LDE.ILensDataEditor.NumberOfSurfaces-1). | |
| bool | CanChangeSurface [get] |
| Gets a value indicating whether the surface is modifiable. For non-sequential systems, the surface will be fixed at surface 1. | |
| int | FirstObject [get, set] |
| Gets or sets the first object to include in the CAD file (1 to ZOSAPI.Editors.NCE.INonSeqEditor.NumberOfObjects). Note that this settings is only valid for pure non-sequential systems. | |
| int | LastObject [get, set] |
| Gets or sets the last object to include in the CAD file (1 to ZOSAPI.Editors.NCE.INonSeqEditor.NumberOfObjects). | |
| bool | SequentialSettingsEnabled [get] |
| Gets a value indicating whether or not the sequential-only settings are used. These settings include: | |
| RayPatternType | RayPattern [get, set] |
| int | NumberOfRays [get, set] |
| int | Wavelength [get, set] |
| int | Field [get, set] |
| bool | DeleteVignetted [get, set] |
| int | RayLayer [get, set] |
| Gets or sets the ray layer (0 to 20). | |
| int | LensLayer [get, set] |
| Gets or sets the lens layer (0 to 20). | |
| double | DummyThickness [get, set] |
| SplineSegmentsType | SplineSegments [get, set] |
| CADFileType | FileType [get, set] |
| CADToleranceType | Tolerance [get, set] |
| CADAngularToleranceType | AngularTolerance [get, set] |
| int | Configuration [get] |
| Gets the current configuration setting. Use one of the following methods to change the configuration setting: | |
| bool | ExportDummySurfaces [get, set] |
| bool | SurfacesAsSolids [get, set] |
| bool | ScatterNSCRays [get, set] |
| bool | SplitNSCRays [get, set] |
| bool | UsePolarization [get, set] |
| string | OutputFileName [get, set] |
| bool | AutoNameFaces [get, set] |
| ACISExportVersion | FileVersion [get, set] |
Properties inherited from ZOSAPI.Tools.ISystemTool | |
| int | Progress [get] |
| Gets the progress of the current tool, if supported. | |
| string | Status [get] |
| Gets the status of the current tool, if supporoted. | |
| bool | IsRunning [get] |
| Gets a value indicating whether the tool is currently running asynchronously. | |
| bool | CanCancel [get] |
| Gets a value indicating whether the tool can be cancelled. | |
| bool | IsAsynchronous [get] |
| Gets a value indicating whether the tool runs asynchronously (i.e. on a thread). | |
| bool | IsFiniteDuration [get] |
| Gets a value indicating whether this tool will complete on its own. | |
| bool | IsValid [get] |
| Gets a value indicating whether the input settings are valid. | |
| bool | Succeeded [get] |
| Gets a value indicating whether the tool execution succeeded. | |
| string | ErrorMessage [get] |
If Succeeded is false, get the error messages; otherwise, null. | |
Detailed Description
Interfaces and methods for exporting the current system to various CAD formats. This interface can be accessed via the IOpticalSystemTools interface.
Usage (see Example 20 for a full sample)
C#
C++
Matlab
Python
Member Function Documentation
◆ SetConfigurationAllAtOnce()
| void ZOSAPI.Tools.General.IExportCAD.SetConfigurationAllAtOnce | ( | ) |
◆ SetConfigurationAllByFile()
| void ZOSAPI.Tools.General.IExportCAD.SetConfigurationAllByFile | ( | ) |
◆ SetConfigurationAllByLayer()
| void ZOSAPI.Tools.General.IExportCAD.SetConfigurationAllByLayer | ( | ) |
◆ SetCurrentConfiguration()
| void ZOSAPI.Tools.General.IExportCAD.SetCurrentConfiguration | ( | ) |
◆ SetFieldAll()
| void ZOSAPI.Tools.General.IExportCAD.SetFieldAll | ( | ) |
◆ SetSingleConfiguration()
| void ZOSAPI.Tools.General.IExportCAD.SetSingleConfiguration | ( | int | ConfigurationNumber | ) |
Set it to export a single configuration of the current system.
- Parameters
-
ConfigurationNumber The configuration number (0 to ZOSAPI.Editors.MCE.IMultiConfigEditor.NumberOfConfigurations). Use 0 for the current configuration.
◆ SetWavelengthAll()
| void ZOSAPI.Tools.General.IExportCAD.SetWavelengthAll | ( | ) |
Property Documentation
◆ AngularTolerance
|
getset |
◆ AutoNameFaces
|
getset |
◆ CanChangeSurface
|
get |
Gets a value indicating whether the surface is modifiable. For non-sequential systems, the surface will be fixed at surface 1.
true if the surface can be changed; otherwise, false.
◆ Configuration
|
get |
Gets the current configuration setting. Use one of the following methods to change the configuration setting:
SetSingleConfiguration
SetConfigurationAllByLayer
SetConfigurationAllByFile
SetConfigurationAllAtOnce
The configuration.
◆ DeleteVignetted
|
getset |
◆ DummyThickness
|
getset |
◆ ExportDummySurfaces
|
getset |
◆ Field
|
getset |
◆ FileType
|
getset |
◆ FileVersion
|
getset |
◆ FirstObject
|
getset |
Gets or sets the first object to include in the CAD file (1 to ZOSAPI.Editors.NCE.INonSeqEditor.NumberOfObjects). Note that this settings is only valid for pure non-sequential systems.
The first object.
◆ FirstSurface
|
getset |
Gets or sets the first surface to include in the CAD file (0 to ZOSAPI.Editors.LDE.ILensDataEditor.NumberOfSurfaces-2).
The first surface.
◆ LastObject
|
getset |
Gets or sets the last object to include in the CAD file (1 to ZOSAPI.Editors.NCE.INonSeqEditor.NumberOfObjects).
The last object.
◆ LastSurface
|
getset |
Gets or sets the last surface to include in the CAD file (1 to ZOSAPI.Editors.LDE.ILensDataEditor.NumberOfSurfaces-1).
The last surface.
◆ LensLayer
|
getset |
Gets or sets the lens layer (0 to 20).
The desired lens layer.
◆ NumberOfRays
|
getset |
◆ OutputFileName
|
getset |
Usage (see Example 20 for a full sample)
C#
C++
Matlab
Python
◆ RayLayer
|
getset |
Gets or sets the ray layer (0 to 20).
The desired ray layer.
◆ RayPattern
|
getset |
◆ ScatterNSCRays
|
getset |
Usage (see Example 20 for a full sample)
C#
C++
Matlab
Python
◆ SequentialSettingsEnabled
|
get |
Gets a value indicating whether or not the sequential-only settings are used. These settings include:
RayPattern
NumberOfRays
Wavelength
SetWavelengthAll
Field
SetFieldAll
DeleteVignetted
true if the sequentials settings are available; otherwise, false.
◆ SplineSegments
|
getset |
◆ SplitNSCRays
|
getset |
◆ SurfacesAsSolids
|
getset |
◆ Tolerance
|
getset |
◆ UsePolarization
|
getset |
◆ Wavelength
|
getset |
Public Member Functions inherited from