Skip to content

System Variables (1 of 5)

AFLAGS

Type: integer · Saved in: session · Initial value: 16

Modes the next attribute definition (ATTDEF) starts with; each definition leaves them as it used them. It is the sum of the values of the active modes:

ValueMode
1Invisible
2Constant
4Verify
8Preset
16Lock position

ANGBASE

Type: real · Stored in: drawing · Initial value: 0

Direction of angle 0, from which the angles written by the program are measured (in LIST, DIST, the PROPERTIES palette…). It is entered in degrees or in any angle format (90, 90d0'0", 100g, 1.5708r); getvar returns it in radians, as in AutoCAD.

Notes

Typed polar coordinates (@50<30) are always measured in degrees from the X axis, counterclockwise.

See also

UNITS · ANGDIR · AUNITS

ANGDIR

Type: integer · Stored in: drawing · Initial value: 0

Direction in which the angles written by the program increase, starting from ANGBASE.

ValueDirection
0Counterclockwise
1Clockwise

Notes

UNITS also changes it (the "Clockwise" check box). It affects how the program measures and writes angles (status bar, UNITS dialog and messages) and the first message of ROTATE, which reports the direction and the base in force. It only accepts 0 and 1; any other value is an error and keeps the previous one. With 1, a 90 rotation does not turn the object counterclockwise but clockwise, because the positive angle is counted clockwise.

Example

Count angles clockwise and go back to normal:

(setvar "ANGDIR" 1)
(getvar "ANGDIR")      ; 1
(setvar "ANGDIR" 0)

See also

UNITS · ANGBASE · AUNITS

ANNOAUTOSCALE

Type: integer · Stored in: session · Initial value: -4

When the annotation scale (CANNOSCALE) changes, adds the new scale to the annotative objects that supported the previous one, so that they keep their paper size.

ValueObjects the scale is added to
1All, except those on layers that are off, frozen or locked
2All, except those on layers that are off or frozen
3All, except those on locked layers
4All
0 or negativeNone: the scale is not added

Notes

It applies to the session: it is not saved in the drawing (in AutoCAD it is a program setting). A negative value turns the feature off while remembering which value would be used, as in AutoCAD.

See also

CANNOSCALE · OBJECTSCALE · Annotation scales

ATTDIA

Type: integer · Stored in: drawing · Initial value: 1

Whether INSERT asks for attributes in a dialog box (1) or on the command line (0).

Notes

LinceCAD stores and returns the value (MODIVAR, LISP setvar/getvar and the API) and keeps it in the DWG and DXF, but no command reads it yet: changing it does not alter what is drawn or how it is edited. INSERT keeps asking for attributes on the command line or in its dialog according to its own setting. It only accepts 0 and 1; another value is an error. It is saved with the drawing, so a script or routine that queries (getvar "ATTDIA") keeps working as in other programs.

Example

(setvar "ATTDIA" 1)
(getvar "ATTDIA")      ; 1

See also

INSERT · ATTREQ · ATTMODE

ATTMODE

Type: integer · Stored in: drawing · Initial value: 1

Visibility of block attributes.

ValueAttributes
0All hidden
1Normal: visible ones shown, invisible ones hidden
2All shown, including invisible ones

Notes

When it changes, blocks are redrawn with the new value.

Edge cases

It only accepts 0, 1 and 2. The initial value is 1. It is saved in the drawing, so opening the file in another program keeps the chosen visibility. ATTDISP (Normal, On, Off) is the command form, and the change shows at once in every inserted block.

Example

Show every attribute, including invisible ones, and go back to normal:

(setvar "ATTMODE" 2)
(getvar "ATTMODE")     ; 2
(setvar "ATTMODE" 1)

See also

ATTDEF · ATTEDIT · BATTMAN

ATTREQ

Type: integer · Stored in: drawing · Initial value: 1

Whether INSERT asks for attribute values (1) or uses the defaults (0).

Notes

LinceCAD stores and returns the value (MODIVAR, LISP setvar/getvar and the API) and keeps it in the DWG and DXF, but no command reads it yet: changing it does not alter what is drawn or how it is edited. INSERT always asks for the attribute values, whatever its value. It only accepts 0 and 1. The initial value is 1. LISP routines can read and change it, but that does not alter what INSERT asks.

Example

(setvar "ATTREQ" 0)
(getvar "ATTREQ")      ; 0
(setvar "ATTREQ" 1)

See also

INSERT · ATTDIA · ATTMODE

AUNITS

Type: integer · Stored in: drawing · Initial value: 0

Format in which the program writes angles.

ValueFormatExample
0Decimal degrees45.5
1Degrees/minutes/seconds45d30'0"
2Grads50.5556g
3Radians0.7941r
4Surveyor's units (bearings)N 44d30' E

Angles can be typed in any of these formats whatever AUNITS is.

Edge cases

It accepts 0 to 4. The precision of the decimals is given by AUPREC (0 to 8). The format applies to what LinceCAD writes (status bar, UNITS dialog, STATUS) and to LISP angtos when no format is given. What you type is understood in any format: for example 45d30', 50g or 0.5r. With 4 (surveyor's units) the angle is written as a bearing with its quadrant: N 44d30' E.

Example

See angles in degrees, minutes and seconds:

(setvar "AUPREC" 2)
(setvar "AUNITS" 1)
(angtos 0.7941)    ; "45d30'"
(setvar "AUNITS" 0)
(setvar "AUPREC" 0)

See also

UNITS · AUPREC · ANGBASE · angtos

AUPREC

Type: integer · Stored in: drawing · Initial value: 0

Number of decimal places of the angles written by the program, from 0 to 8. In degrees/minutes/seconds it sets how far they go: 0 degrees only, 1-2 minutes, 3-4 seconds and higher, decimals of the seconds.

See also

UNITS · AUNITS

AUTOSNAP

Type: integer · Saved in: session · Initial value: 63

Cursor markers and tracking, as a sum of bits. LinceCAD uses 8 (polar tracking, the Polar Tracking button and F10) and 16 (object snap tracking, F11); the other bits are accepted and change nothing.

See also

POLAR · POLARANG · Object snaps and precision

BINDTYPE

Type: integer · Stored in: session · Initial value: 0

How the layers, linetypes, styles and blocks of an external reference are named when it is bound to the drawing with the Bind option of -XREF (or the button in XREF).

ValueNames
0Bind: reference$0$name (the WALLS layer of the base reference becomes base$0$WALLS)
1Insert: the name they had in the reference (WALLS); if it already exists in the drawing, the drawing's own is used

Notes

It applies to the session: it is not saved in the drawing (in AutoCAD it is a program setting).

What it is for

When an external reference is bound, its layers, linetypes, styles and blocks become part of the drawing. With 0, the reference$0$ prefix avoids clashes with names that already exist, at the cost of long names. With 1 the original names are kept, as if the drawing had been inserted, and whatever already exists with the same name stays as it was in the drawing.

How to change it

Example

Bind the reference base keeping its layer names as they are:

(setvar "BINDTYPE" 1)

and then the Bind option of -XREF.

Common mistakes

See also

-XREF · XREF · External references

CANNOSCALE

Type: text · Stored in: drawing · Initial value: 1:1

Current annotation scale of model space: the name of a scale in the drawing's scale list (1:50). Annotative objects are shown with the representation of this scale and new ones are created with it: a 2.5 text at 1:50 measures 125 drawing units.

Notes

Scale … is not in the drawing scale list.

How to change it

Example

An annotative text 2.5 high on paper measures 125 units with CANNOSCALE = 1:50 and 250 with 1:100. To read the current scale:

(getvar "CANNOSCALE")   ; "1:1"

Common mistakes

See also

OBJECTSCALE · ANNOAUTOSCALE · DIMSCALE · Annotation scales

CBARTRANSPARENCY

Type: integer · Saved in: session · Initial value: 50

Transparency of constraint bars, as a percentage (10 to 90). It is the Constraint bar transparency slider of the CONSTRAINTSETTINGS dialog box.

Notes

As in AutoCAD, it is not saved in the drawing: it is kept in the preferences and applies to later sessions.

See also

CONSTRAINTSETTINGS · CONSTRAINTBAR · CONSTRAINTBARMODE

CECOLOR

Type: text · Stored in: drawing · Initial value: BYLAYER

Color given to new objects.

See also

COLOR · PROPERTIES · CLAYER

CELTSCALE

Type: real · Stored in: drawing · Initial value: 1

Linetype scale given to new objects. It multiplies LTSCALE: with 2, the dashes and gaps of new objects are twice as long as those of the rest. It must be greater than 0.

See also

LINETYPE · LTSCALE · CELTYPE

CELTYPE

Type: text · Stored in: drawing · Initial value: ByLayer

Linetype given to new objects: BYLAYER (the layer's), BYBLOCK (the block's) or the name of a linetype loaded in the drawing (CONTINUOUS, DASHED…). A linetype that is not loaded is rejected: load it first with LINETYPE.

See also

LINETYPE · CELTSCALE · LTSCALE

CENTERCROSSGAP

Type: string · Stored in: session · Initial value: 0.05x

Gap between the cross of the center mark and its extension lines. With a trailing x it is relative to the diameter of the circle or arc (0.05x, 5 %); without it, in drawing units.

See also

CENTERMARK · CENTERLINE

CENTERCROSSSIZE

Type: string · Stored in: session · Initial value: 0.1x

Length of the cross of the center mark. With a trailing x it is relative to the diameter (0.1x, 10 %); without it, in drawing units.

See also

CENTERMARK · CENTERLINE

CENTEREXE

Type: real · Stored in: session · Initial value: 3.5

How far the extension lines of a center mark go beyond the circle or arc, and how far a centerline goes beyond the ends of its lines.

See also

CENTERMARK · CENTERLINE

CENTERLAYER

Type: string · Stored in: session · Initial value: .

Layer on which center marks and centerlines are created; . is the current layer. It is also changed with the Layer option of both commands.

See also

CENTERMARK · CENTERLINE

CENTERLTSCALE

Type: real · Stored in: session · Initial value: 1

Linetype scale of new center marks and centerlines.

Notes

It must be greater than 0. It sets the linetype scale (dashes and dots) of the centerlines and center marks drawn by CENTERMARK and CENTERLINE from then on; those already drawn do not change. It lasts for the session. A high value stretches the dashes; a low one makes them tight.

Example

(setvar "CENTERLTSCALE" 0.5)
(getvar "CENTERLTSCALE")   ; 0.5

See also

CENTERMARK · CENTERLINE

CENTERLTYPE

Type: string · Stored in: session · Initial value: (empty)

Linetype of the extensions of center marks and of centerlines. Empty, CENTER2, which is loaded if it is not in the drawing.

See also

CENTERMARK · CENTERLINE

CENTERMARKEXE

Type: integer · Stored in: session · Initial value: 1

It is stored and read as in AutoCAD (1 on, 0 off). As in AutoCAD 2027, new center marks get their extension lines with either value.

See also

CENTERMARK · CENTERLINE

CETRANSPARENCY

Type: text · Stored in: drawing · Initial value: BYLAYER

Transparency given to new objects.

Notes

See also

PROPERTIES · TRANSPARENCYDISPLAY · CECOLOR

CHAMFERA

Type: real · Stored in: drawing · Initial value: 0

First chamfer distance: the one trimmed from the first selected object. CHAMFER proposes it and stores it when it is changed. With both distances at 0, the objects are joined in a sharp corner.

See also

CHAMFER · CHAMFERB · FILLETRAD

CHAMFERB

Type: real · Stored in: drawing · Initial value: 0

Second chamfer distance: the one trimmed from the second selected object.

Notes

This is the second distance CHAMFER uses with the two-distance method (the first is CHAMFERA). CHAMFER updates it when it finishes with what was typed. It accepts any length greater than or equal to 0 and can be typed with the drawing units; a negative value is an error. With 0 in both distances, CHAMFER extends or trims the lines until they meet at a sharp corner.

Example

A 5 by 10 chamfer:

(setvar "CHAMFERA" 5)
(setvar "CHAMFERB" 10)
(getvar "CHAMFERB")    ; 10.0

See also

CHAMFER · CHAMFERA

CIRCLERAD

Type: real · Saved in: session · Initial value: 0

Radius that CIRCLE proposes between < >: the one of the last circle drawn (by center, 3P, 2P or Ttr), as in AutoCAD. With 0 it proposes none.

Notes

Enter at the radius (or diameter) prompt uses this value. It applies to the session (it is not saved in the drawing).

Example

(setvar "CIRCLERAD" 5)

See also

CIRCLE

CLAYER

Type: text · Stored in: drawing · Initial value: 0

Current layer: new objects are created on it. Enter the name of an existing layer (case does not matter). A frozen layer cannot be made current.

See also

LAYER · LAYMCUR · LAYERP · CECOLOR

CLEANSCREENSTATE

Type: integer · Saved in: session · Read-only · Initial value: 0

It is 1 with the clean screen on (CLEANSCREENON) and 0 with it off (CLEANSCREENOFF).

CLIPROMPTLINES

Type: integer · Saved in: session · Initial value: 3

Number of lines of temporary prompt history (0 to 50) shown above the input row of the floating, collapsed command line, and over the drawing with the docked, collapsed one: the last lines of the history, which fade a few seconds after the last new line and stay while a command runs. With 0 they are not shown. It can also be set with the 🔧 wrench of the command line.

Notes

As in AutoCAD, it is not saved in the drawing: it is kept in the preferences and applies to later sessions.

Example

(setvar "CLIPROMPTLINES" 5)

The last five lines are shown.

CLIPROMPTUPDATE

Type: integer · Saved in: session · Initial value: 1

With 1, the command line shows the messages and prompts generated by a script (SCRIPT) or an AutoLISP routine while it runs; with 0 it does not, and the script or routine runs without writing to it.

Notes

As in AutoCAD, it is not saved in the drawing: it is kept in the preferences and applies to later sessions.

Example

(setvar "CLIPROMPTUPDATE" 0)

The following scripts do not write to the command line.

CMLJUST

Type: integer · Stored in: drawing · Initial value: 0

Justification of new multilines: 0 top, 1 middle, 2 bottom.

Notes

It accepts 0 (top), 1 (middle) and 2 (bottom). MLINE reads it when it starts and saves it when it ends if it was changed with its Justification option. It is the justification used when drawing: it defines which part of the multiline lies on the picked points. Changing it does not modify multilines already drawn.

Example

(setvar "CMLJUST" 1)
(getvar "CMLJUST")     ; 1

See also

MLINE · CMLSCALE

CMLSCALE

Type: real · Stored in: drawing · Initial value: 1

Scale of new multilines.

Notes

It must be greater than or equal to 0 (the initial value is 1). MLINE multiplies the spacing between the elements of the style by it. With 0, MLINE uses 1; a negative value is an error. It does not change multilines already drawn.

Example

Twice as wide:

(setvar "CMLSCALE" 2)
(getvar "CMLSCALE")    ; 2.0

See also

MLINE · CMLJUST

CONSTRAINTBARDISPLAY

Type: integer · Saved in: session · Initial value: 3

Sum of bits: with 1, after applying constraints (GEOMCONSTRAINT, AUTOCONSTRAIN or the inference of CONSTRAINTINFER) the objects' bars are shown; without it they are hidden, as with CONSTRAINTBAR Hide. With 2, the bars of selected objects are shown for a moment. They are the last two check boxes of the Geometric tab of CONSTRAINTSETTINGS.

Notes

It accepts 0 to 3, as AutoCAD. Bit 2 is stored, but LinceCAD does not use it yet. It is not saved in the drawing: it is kept in the preferences.

See also

CONSTRAINTSETTINGS · CONSTRAINTBAR

CONSTRAINTBARMODE

Type: integer · Saved in: session · Initial value: 4095

Which geometric constraints show on constraint bars, as a sum of bits: 1 horizontal, 2 vertical, 4 perpendicular, 8 parallel, 16 tangent, 32 smooth, 64 coincident, 128 concentric, 256 collinear, 512 symmetric, 1024 equal and 2048 fix. They are the check boxes of the Geometric tab of CONSTRAINTSETTINGS.

Notes

As in AutoCAD, SETVAR accepts 1 to 4095; the dialog's Clear All button does set it to 0. It is not saved in the drawing: it is kept in the preferences.

Example

(setvar "CONSTRAINTBARMODE" 3)

Only horizontal and vertical constraints show.

See also

CONSTRAINTSETTINGS · CONSTRAINTBAR · CBARTRANSPARENCY

CONSTRAINTINFER

Type: integer · Saved in: session · Initial value: 0

With 1, geometric constraints are inferred while drawing: new objects get those they already satisfy with the objects they touch, with the priority, types and tolerances of the AutoConstrain tab of CONSTRAINTSETTINGS. It is the Infer geometric constraints check box of that dialog box.

Notes

AutoCAD infers from the object snaps used; LinceCAD, from what the new geometry already satisfies (like AUTOCONSTRAIN). What almost satisfies a relationship is adjusted to satisfy it. It is not saved in the drawing: it is kept in the preferences.

See also

CONSTRAINTSETTINGS · AUTOCONSTRAIN

CONSTRAINTNAMEFORMAT

Type: integer · Saved in: session · Initial value: 2

Text format of dimensional constraints: 0 name, 1 value, 2 name and expression. It is the Dimension name format list of CONSTRAINTSETTINGS.

Notes

It is kept in the preferences, but LinceCAD always labels name=expression, which is what AutoCAD saves in the DWG. As in AutoCAD, SETVAR accepts any integer.

See also

CONSTRAINTSETTINGS · DIMCONSTRAINT

COORDS

Type: integer · Stored in: drawing · Initial value: 2

How cursor coordinates are shown on the status bar (0 to 3).

Notes

It accepts 0 to 3. LinceCAD stores the value and returns it, but neither commands nor the status bar read it: the bar always shows the cursor coordinates. It is kept in the DWG and DXF for other programs.

Example

(getvar "COORDS")      ; 2
(setvar "COORDS" 2)

See also

UNITS · AUNITS

CTABLESTYLE

Type: text · Stored in: drawing · Initial value: Standard

Current table style: the one TABLE uses for new tables. Enter the name of an existing style.

Notes

Enter the name of an existing table style; otherwise it is an error and the current one is kept. It is saved in the drawing. Tables already created do not change style: change each table's style from its properties.

Example

(getvar "CTABLESTYLE")   ; "Standard"

See also

TABLE · TABLESTYLE

Download LinceCAD Manual contents

Download the free 30-day trial · Open and edit DWG files · AutoCAD LT alternative

Coming from AutoCAD? Check what is compatible · AutoCAD LT alternative