SETVAR
Changes the state of variables for optimization.
Syntax:
SETVAR surf, code, status, object or SETVAR config, M, status, operand
Discussion:
Surf must evaluate to an integer between 0 and the maximum number of surfaces. Config must evaluate to an integer between 1 and the number of configurations. Code must be one of the following strings:
R for radius of curvature
T for thickness
C for conic
G for glass
I for glass index
J for glass Abbe
K for glass dpgf
Pn for parameter n
D for thermal coefficient of expansion
En for extra data value n
M for multi-configuration data, see discussion below
Nn for non-sequential component position data, 1-6 for x, y, z, tx, ty, tz
On for non-sequential component parameter data, where n is the parameter number
If status evaluates to 0, then the variable status is removed. Otherwise, the value is made variable. If the code is Nn or On; the object number must be provided; otherwise, it should be omitted. If the code is M, then the syntax for this command is as shown under "syntax" above.
Examples:
SETVAR j+3, R, 1 SETVAR 5, P6, 0 SETVAR surfk+2, E06, status SETVAR config, M, status, operand SETVAR 1, O32, 1, 5
Next: