GETVARDATA
Retrieves the current number, type, and value of all optimization variables. The data is placed in one of the vector array variables (either VEC1, VEC2, VEC3, or VEC4).
Syntax:
GETVARDATA vector
Discussion:
The data is stored in the specified VECn array variable. For example, if the command GETVARDATA 1 is issued, the data will be stored in VEC1. The data is stored in the following format, where the first number in each line refers to the array position:
0: n, the number of variables
1: The type code for the first variable
2: Surface number for the first variable
3: Parameter number for the first variable
4: Object number for the first variable
5: The value of the first variable
5*q-4: The type code for the qth variable
5*q-3: Surface number for the qth variable
5*q-2: Parameter number for the qth variable
5*q-1: Object number for the qth variable
5*q: The value of the qth variable
etc...
The integer q goes from 1 to n, where n is the number of variables. If n is zero, then no valid data is returned. The value of the number in array position zero, n, is always valid. The type codes for variables is as described in the following table. The surface number, parameter number, and object number may or may not have meaning depending upon the type of variable.
GETVARDATA TYPE AND ID CODES
Variable type | Type Code | Surface | Parameter | Object |
Curvature | 1 | surface # | - | - |
Thickness | 2 | surface # | - | - |
Conic | 3 | surface # | - | - |
Index Nd | 4 | surface # | - | - |
Abbe Vd | 5 | surface # | - | - |
Partial Dispersion ΔPgF | 6 | surface # | - | - |
TCE | 7 | surface # | - | - |
Parameter Values | 8 | surface # | parameter # | - |
Extra Data Values | 9 | surface # | extra data # | - |
Multi-configuration Operand Values | 10 | oper # | config # | - |
Non-sequential Object Position X | 11 | surface # | - | object # |
Non-sequential Object Position Y | 12 | surface # | - | object # |
Non-sequential Object Position Z | 13 | surface # | - | object # |
Non-sequential Object Tilt X | 14 | surface # | - | object # |
Non-sequential Object Tilt Y | 15 | surface # | - | object # |
Non-sequential Object Tilt Z | 16 | surface # | - | object # |
Non-sequential Object Parameters | 17 | surface # | parameter # | object # |
Next: