System variables

Information about several system environment and drawing variables is saved in the system variables. You can change the values of these variables with the SETVAR command.

There are four types of system variables:

  • REAL, such as ORTHOANGLE

  • INTEGER, such as COLOR

  • POINT, point variables contain the coordinates of a specific point

  • STRING, string variables contain text information. The length of the string depends on the variable.

Some system variables are read-only.

Some variables, such as current color or linetype, are changed by other commands. Color is a example of a system variable, that can only be changed with the appropriate command, COLOR. The system variable itself is read-only.

Some system variables can be changed both with a separate command and with the SETVAR command. For example, the GRIDSPACING system variable can be changed with the SETVAR and the GRID commands.

There are a few system variables that users should be aware of, such as ARCPRECISION, which defines the precision by which arcs are drawn on the screen.

Related Topics