ZOSAPI.Tools.General.IScale Interface Reference
Last update: 17.07.2025Interfaces and methods for Scaling the Currently active Lens System. This interface can be accessed via the IOpticalSystemTools interface. More...

Public Member Functions | |
| string | GetComponentAt (int idx) |
| Get the 'Avaiable Component List' at index 'idx'. | |
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 | |
| double | ScaleFactor [get, set] |
| How much do we scale the System. | |
| int | FirstComponent [get, set] |
| Which is the First Surface/Object to Scale. | |
| int | LastComponent [get, set] |
| Which is the Last Surface/Object to Scale. | |
| ScaleToUnits | ScaleToUnit [get, set] |
| To which unit type are we Scaling. | |
| bool | ScaleByFactor [get, set] |
| How much do we scale the System using 'ScaleFactor'. | |
| bool | ScaleByUnits [get, set] |
| Scale from the Current Unit to this new Unit. ScaleFactor comes from the coversion from one metric to another. If true, ScaleByUnits is set to false and vice versa. | |
| int | NumberOfComponents [get] |
| How many components are in the 'Avaiable Component List'. If true, ScaleByFactor is set to false and vice versa. | |
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 Scaling the Currently active Lens System. This interface can be accessed via the IOpticalSystemTools interface.
Usage (see Example 11 for a full sample)
C#
C++
Matlab
Python
- Examples
- CSharpStandalone_11_Basic_Seq.cs.
Member Function Documentation
◆ GetComponentAt()
| string ZOSAPI.Tools.General.IScale.GetComponentAt | ( | int | idx | ) |
Get the 'Avaiable Component List' at index 'idx'.
- Parameters
-
idx Get the idx-th Component.
- Returns
- The idx-th Component
Property Documentation
◆ FirstComponent
|
getset |
Which is the First Surface/Object to Scale.
◆ LastComponent
|
getset |
Which is the Last Surface/Object to Scale.
◆ NumberOfComponents
|
get |
How many components are in the 'Avaiable Component List'. If true, ScaleByFactor is set to false and vice versa.
◆ ScaleByFactor
|
getset |
How much do we scale the System using 'ScaleFactor'.
◆ ScaleByUnits
|
getset |
Scale from the Current Unit to this new Unit. ScaleFactor comes from the coversion from one metric to another. If true, ScaleByUnits is set to false and vice versa.
◆ ScaleFactor
|
getset |
How much do we scale the System.
◆ ScaleToUnit
|
getset |
To which unit type are we Scaling.
Public Member Functions inherited from