Skip to content

System Variables (3 of 5)

LAYLOCKFADECTL

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

Fading (0 to 90) of the objects on locked layers; LAYISO with Lock and fade sets it too.

Notes

LinceCAD keeps the value, but the view does not fade locked layers yet.

See also

LAYISO · LAYLCK

LIMCHECK

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

Whether drawing outside the drawing limits is checked.

ValueChecking
0Off
1On

Notes

It accepts 0 and 1. LIMITS (On and Off) and this variable change it; STATUS shows it. LinceCAD saves the value with the drawing, but no command prevents drawing outside the limits today even with the check on.

Example

(setvar "LIMCHECK" 1)
(getvar "LIMCHECK")    ; 1

See also

LIMITS · LIMMIN · LIMMAX

LIMMAX

Type: 2D point · Stored in: drawing · Initial value: 420,297

Upper right corner of the model space limits.

Notes

It is written as a point (420,297) and also with the drawing units. LIMITS changes it, and STATUS shows it. The limits are saved in the drawing and returned, but in LinceCAD they do not bound the grid or the zoom and do not prevent drawing outside (see LIMCHECK). A value that is not a point is an error.

Example

A4 landscape paper in millimeters:

(setvar "LIMMIN" "0,0")
(setvar "LIMMAX" "297,210")
(getvar "LIMMAX")      ; (297.0 210.0)

See also

LIMITS · LIMMIN

LIMMIN

Type: 2D point · Stored in: drawing · Initial value: 0,0

Lower left corner of the model space limits.

Notes

It is written as a point (0,0) and also with the drawing units. LIMITS changes it, and STATUS shows it together with LIMMAX. In LinceCAD the limits are stored and returned, but they do not restrict the grid or the zoom; drawing outside is not prevented even with LIMCHECK on. A value that is not a point is an error.

Example

(setvar "LIMMIN" "0,0")
(setvar "LIMMAX" "297,210")
(getvar "LIMMAX")      ; (297.0 210.0)

See also

LIMITS · LIMMAX

LOFTANG1

Type: real · Saved in: drawing · Initial value: 90

Angle, from 0 to 359.9°, at which the LOFT solid leaves the first section when LOFTNORMALS is 6 (draft angles): measured from the plane of the section, outwards. With 90 it leaves perpendicular to it.

See also

LOFTANG2 · LOFTMAG1 · LOFTNORMALS

LOFTANG2

Type: real · Saved in: drawing · Initial value: 90

Angle, from 0 to 359.9°, at which the LOFT solid reaches the last section when LOFTNORMALS is 6 (draft angles): measured from the plane of the section, outwards, like LOFTANG1 at the first one. With 90 it arrives perpendicular to it.

See also

LOFTANG1 · LOFTMAG2 · LOFTNORMALS

LOFTMAG1

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

Magnitude, from 0 to 64, of the draft tangent at the first section (LOFTNORMALS 6): the larger, the longer the angle holds away from the section. With 0 the mean distance between sections is used, as in AutoCAD.

See also

LOFTMAG2 · LOFTANG1 · LOFTNORMALS

LOFTMAG2

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

Magnitude, from 0 to 64, of the draft tangent at the last section (LOFTNORMALS 6): the larger, the longer the angle of LOFTANG2 holds near it. With 0 the mean distance between sections is used.

See also

LOFTMAG1 · LOFTANG2 · LOFTNORMALS

LOFTNORMALS

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

Surface of LOFT between sections: 0, ruled; 1, smooth fit; 2, normal (perpendicular) to the first section; 3, to the last; 4, to both; 5, to all; 6, with the draft angles of LOFTANG1 and LOFTANG2 and the magnitudes of LOFTMAG1 and LOFTMAG2. The Settings dialog box of LOFT changes it (in a script, to 0 or 1).

Notes

See also

LOFT · LOFTANG1 · LOFTMAG1

LOFTPARAM

Type: integer · Saved in: drawing · Initial value: 7

Shape options of LOFT in AutoCAD (sum of bits): 1, no twist; 2, align direction; 4, simple surfaces; 8, close the surface or solid. LinceCAD saves it in the drawing and returns it as is (MODIVAR, LISP), but its loft does not use it: it does not twist the sections and does not close the loft.

See also

LOFTNORMALS · LOFT

LUNITS

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

Format in which the program writes lengths and coordinates.

ValueFormatExample
1Scientific1.5500E+01
2Decimal15.5000
3Engineering1'-3.5000"
4Architectural1'-3 1/2"
5Fractional15 1/2

In the engineering and architectural formats the drawing unit is the inch, as in AutoCAD.

See also

UNITS · LUPREC · rtos

LUPREC

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

Number of decimal places of the lengths written by the program, from 0 to 8. In the fractional formats it sets the smallest denominator: 1 halves, 2 quarters, 3 eighths… up to 8 (1/256).

See also

UNITS · LUNITS

MAXACTVP

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

Maximum number of viewports active at once in a layout.

Notes

It accepts 2 to 64 (initial value 64); 1 is an error. 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. It is the maximum number of viewports active at once in a layout.

Example

(getvar "MAXACTVP")    ; 64

See also

LAYOUT · MVIEW

MEASUREMENT

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

Drawing units for hatch patterns and linetypes: 0 imperial, 1 metric.

Notes

It accepts 0 (imperial) and 1 (metric); the initial value in templates is 1. 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. When a drawing is created from a template it is filled in with that template's measurements, but it does not by itself change hatch patterns or linetypes.

Example

(getvar "MEASUREMENT") ; 1

See also

UNITS · INSUNITS

MIRRTEXT

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

How MIRROR handles text, multiline text and attributes.

ValueText
0Moved, but still reads normally
1Mirrored like everything else (reads backwards)

Notes

It accepts 0 and 1 (initial value 0). MIRROR, grip mirroring and the flip option of ALIGN read it. With 0 the text moves to its new place but stays readable; with 1 it is mirrored and reads backwards. It affects text and attributes, not dimensions.

Example

Mirror without flipping texts (the usual):

(setvar "MIRRTEXT" 0)
(getvar "MIRRTEXT")    ; 0

What it is for

When half a floor plan is mirrored to draw the other half (two semi-detached houses, a symmetric part), the labels must still read the right way: with 0, the text changes side but is not reversed. With 1 it is mirrored like any other geometry, which is only useful in cases such as a sign meant to be read from behind a pane of glass.

Common mistakes

See also

MIRROR · ALIGN

MSLTSCALE

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

Whether the current annotation scale (CANNOSCALE) multiplies the dashes and gaps of linetypes in model space.

ValueAnnotation scale in model space
0Not applied
1Multiplies the pattern: with CANNOSCALE = 1:50, dashes and gaps are 50 times longer

Notes

This factor is added to LTSCALE, the object's own linetype scale and the scale of its containing block. CANNOSCALE is not applied in layouts: linetype scaling there depends on PSLTSCALE. Any integer other than 1 sets MSLTSCALE to 0; a non-integer value is rejected and the previous value is kept.

Example

(setvar "CANNOSCALE" "1:50")
(setvar "MSLTSCALE" 1)
(getvar "MSLTSCALE")    ; 1

See also

CANNOSCALE · LTSCALE · CELTSCALE · PSLTSCALE

NAVBARDISPLAY

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

Shows (1) or hides (0) the navigation bar: the column of buttons on the right of the viewport, under the view cube (at the top in layouts and in the block editor), with Pan, Extents and its ▾ (zoom window, previous, all and realtime) and, in model space, orbit and its ▾ (free and continuous). Like the cube, it is translucent when inactive with the NAVVCUBEOPACITY opacity and opaque with the mouse over 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 "NAVBARDISPLAY" 0)

Hides the navigation bar.

See also

PAN · ZOOM · 3DORBIT

NAVVCUBEOPACITY

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

Opacity of the view cube (top right of the viewport) while the mouse is not over it, as a percentage (0 to 100): with 50 the drawing shows through the cube, the compass ring and the UCS button; with 100 it is opaque and with 0 it is hidden until the mouse passes over it. With the mouse over it or while dragging the cube, it is always opaque.

Notes

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

Example

(setvar "NAVVCUBEOPACITY" 80)

The cube is almost opaque when inactive.

See also

3DORBIT · VIEW · VPOINT

ORTHOMODE

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

1 turns on Ortho mode (F8, ORTHO): the cursor moves horizontally or vertically from the last point. Turning it on turns polar tracking off, as in AutoCAD.

See also

ORTHO · AUTOSNAP

OSMODE

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

Running object snaps, as a sum: 1 endpoint, 2 midpoint, 4 center, 8 node, 16 quadrant, 32 intersection, 64 insertion, 128 perpendicular, 256 tangent, 512 nearest and 4096 extension. Adding 16384 turns them off without losing the modes (F3, OSNAP).

How it is worked out

Add up the values of the snaps you want active. The initial value, 4133, is 1 + 4 + 32 + 4096: endpoint, center, intersection and extension. For endpoint and intersection, 1 + 32 = 33. Pressing F3 adds or removes 16384: every snap is turned off, but the combination is kept for when they are turned on again.

How to change it

Example

An AutoLISP routine that changes the snaps saves the value first and restores it at the end:

(setq old (getvar "OSMODE"))
(setvar "OSMODE" 33)
; ... the routine asks for its points ...
(setvar "OSMODE" old)

Notes

Common mistakes

See also

OSNAP · Object snaps and precision

PARAMETERSSTATUS

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

Read-only: 1 while the Parameters Manager (PARAMETERS) is open, 0 otherwise. Scripts and AutoLISP programs can read it to know whether the palette is on screen before opening it or changing parameters with -PARAMETERS.

Notes

SETVAR does not change it: as in AutoCAD, trying it gives a read-only error. It is not saved in the drawing.

See also

PARAMETERS

PDFFRAME

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

Frame of the PDF underlays in the drawing.

ValueFrame
0Hidden (the frame of an underlay whose file is not found is shown anyway)
1Displayed and plotted
2Displayed but not plotted

Notes

With 2 the frame shows on screen but is not plotted or exported. The setting applies to the session (AutoCAD saves it in the drawing).

See also

PDFATTACH · PDFCLIP · IMAGEFRAME · XCLIPFRAME

PDSIZE

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

Size of the point symbol (see PDMODE).

See also

PTYPE · POINT · PDMODE

PELEVATION

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

Paper space elevation.

Notes

It accepts any real number (also negative). 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. It is the paper space elevation; other programs use it, but LinceCAD draws in layouts without taking it into account.

Example

(getvar "PELEVATION")  ; 0.0

See also

LAYOUT · ELEVATION

PELLIPSE

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

Whether ELLIPSE creates true ellipses (0) or polylines (1).

Notes

It accepts 0 and 1. LinceCAD stores and returns it, but no command reads it: ELLIPSE always draws true ellipses, with either value.

See also

ELLIPSE

PICKADD

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

How selections add up, as in AutoCAD: 1 and 2 add each selection to what is already selected; 0 replaces it (what was selected before is deselected). With 2, what is selected with SELECT stays selected when the command ends (with 0 and 1, only as the Previous selection).

See also

PICKFIRST · SELECT

PICKFIRST

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

Whether commands accept the objects selected before starting them (1) or always ask for the selection (0), as in AutoCAD. ZOOM, PAN, DIST and ID keep the selection.

See also

PICKSTYLE

PLINEGEN

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

Whether the linetype of new polylines runs along the whole polyline (1) or restarts at each vertex (0).

Notes

It accepts 0 and 1. It is a drawing setting that LinceCAD stores and returns and that is kept in the DWG and DXF, but no command reads it: changing it does not alter the linetype of new polylines or of those already drawn.

Example

(setvar "PLINEGEN" 1)
(getvar "PLINEGEN")    ; 1

See also

PLINE · LTSCALE

PLINEWID

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

Default width of new polylines, in AutoCAD. A value of 0 or greater.

Notes

PLINE and POLYGON create polylines with this width, and the PLINE Width option proposes it.

See also

PLINE · PEDIT

POLYSIDES

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

Number of sides that POLYGON proposes: the last one used (3 to 1024), as in AutoCAD.

Notes

It accepts 3 to 1024. POLYGON updates it with the number you type, so the next time it offers the same one. It lasts for the session (it is not saved in the drawing). A value out of range is an error and keeps the previous one.

Example

Draw hexagons without typing the number each time:

(setvar "POLYSIDES" 6)
(getvar "POLYSIDES")   ; 6

See also

POLYGON

POLARANG

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

Polar tracking increment angle, in degrees (the one in the Polar Tracking button menu).

Notes

It must be between 0 and 360 (not including the ends) and can be typed in the drawing's angle format. Polar tracking shows the guide at every multiple of this angle: with 90 only horizontal and vertical, with 15 every fifteen degrees. It is not saved in the drawing. For single angles outside the series use POLARADD.

Example

Tracking every 15 degrees:

(setvar "POLARANG" 15)
(getvar "POLARANG")    ; 15

See also

POLAR · AUTOSNAP

PROXYGRAPHICS

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

Whether proxy object images are saved in the drawing.

Notes

It accepts 0 and 1 (initial value 1). 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. It says whether images of proxy objects (those from applications the program does not know) are saved.

Example

(getvar "PROXYGRAPHICS") ; 1

See also

INDEXCTL

PSOLHEIGHT

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

Height of new polysolids.

Notes

It must be greater than 0 (initial value in a new drawing: 4). 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. POLYSOLID does not read it: it always starts with a height of 80 and a width of 5 that are changed with its own options.

Example

(setvar "PSOLHEIGHT" 100)
(getvar "PSOLHEIGHT") ; 100.0

See also

POLYSOLID · PSOLWIDTH

PSOLWIDTH

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

Width of new polysolids.

Notes

It must be greater than 0 (initial value in a new drawing: 0.25). 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. POLYSOLID does not read it: it always starts with a width of 5 and a height of 80 that are changed with its own options.

Example

(setvar "PSOLWIDTH" 10)
(getvar "PSOLWIDTH")   ; 10.0

See also

POLYSOLID · PSOLHEIGHT

PSTYLEMODE

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

Whether the drawing uses color-dependent (1) or named (0) plot styles (read-only).

Notes

It is read-only: trying to change it is an error. LinceCAD changes it itself when it converts plot styles (CONVERTPSTYLES: with an .stb table it switches to named styles and with a .ctb, to color-based ones). With 1 the pens depend on the color of each object; with 0, on a named style assigned to objects and layers.

See also

PLOT · CTABLESTYLE

QPMODE

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

Whether the quick properties panel appears when objects are selected with no command running.

ValueQuick properties panel
0Off
1On

Notes

The panel is a reduced, floating version of the PROPERTIES palette: next to the cursor it shows the layer, the color and the key properties of the selected type (radius, length, contents…), and it closes when the selection is cleared or a command starts. With objects of several types it only shows the common properties. It does not appear in test scripts.

See also

QUICKPROPERTIES · PROPERTIES

QTEXTMODE

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

Quick text: whether texts are shown as rectangles.

Notes

It accepts 0 and 1. 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. Quick text does not exist in LinceCAD: texts are always drawn in full, whatever the value.

Example

(getvar "QTEXTMODE")   ; 0

See also

TEXT · TEXTQLTY

REFPATHTYPE

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

How the path of the external references and PDF underlays you attach is saved.

ValuePath
0No path: just the file name, which is looked for in the drawing's folder
1Relative to the drawing's folder
2Full

Notes

See also

XATTACH · -XREF · External references

REGENMODE

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

Automatic regeneration of the drawing.

Notes

It accepts 0 and 1 (initial value 1). 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. LinceCAD redraws as soon as the drawing changes; there is no regeneration that this variable could defer.

Example

(getvar "REGENMODE")   ; 1

See also

REGEN

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 · Linux CAD with native DWG