Skip to content

System Variables (2 of 5)

DELOBJ

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

Whether commands that build objects from others (REGION, EXTRUDE…) delete the source ones.

Notes

It accepts -3 to 3, as in AutoCAD (a new drawing starts with 3). It is read by EXTRUDE, REVOLVE, SWEEP, LOFT and REGION: with 0 they keep the source objects; with 1 they delete the profiles; with 2 and 3 they also delete the path or the axis selected as an object. A negative value does the same as the positive one, but asks first "Delete the defining objects?" (REGION does not ask: it deletes with any value other than 0). As in AutoCAD, which stores it in the registry, it belongs to the application, not to the drawing: opening a drawing does not change it and the next session starts with the last value. The "Delete source objects" check box in OPTIONS changes it.

Example

Extrude keeping the profile:

(setvar "DELOBJ" 0)
(getvar "DELOBJ")      ; 0

See also

EXTRUDE · REVOLVE · REGION

DIMCEN

Type: real · Stored in: drawing · Initial value: 2.5 (ISO-25)

Size of the center mark of DIMCENTER and of radius and diameter dimensions: positive, a cross of that half size; negative, also the center lines; 0, no mark.

Notes

When a dimension style is made current, this variable takes its value.

See also

DIMCENTER · DIMSTYLE

DIMCONSTRAINTICON

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

Lock icon next to the text of dimensional constraints, as a sum of bits: 1 dynamic, 2 annotational. Bit 2 is the Show lock icon for annotational constraints check box of CONSTRAINTSETTINGS.

Notes

It accepts 0 to 3. It is kept in the preferences; LinceCAD does not draw the lock yet.

See also

CONSTRAINTSETTINGS · DIMCONSTRAINT

DIMSCALE

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

Overall dimension scale: it multiplies the text heights, arrow sizes and distances of the dimension style. A value of 0 or greater.

Notes

New dimensions use the DIMSCALE of their dimension style. When a style is made current, this variable takes its value; to rescale the dimensions, modify the style with DIMSTYLE.

What it is for

The dimension style is defined with the sizes things must have on paper (2.5 text, 2.5 arrowheads…). In a drawing in millimeters plotted at 1:50, a DIMSCALE of 50 in the style makes the text 125 units high in the drawing and 2.5 mm on paper. That way one style serves several scales by changing only this factor.

How to change it

Example

(getvar "DIMSCALE")   ; 1.0

Common mistakes

See also

DIMSTYLE · DIMSTYLE

DIMSTYLE

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

Current dimension style: the one used by new dimensions. When it changes, the dimension variables of the header (DIMSCALE, arrow size, text height…) take the values of the style, as in AutoCAD.

What it is for

The same drawing can have several dimension styles (one for plans at 1:50, another for details at 1:10, one with tolerances…). DIMSTYLE says which one is used for the dimensions drawn next; existing dimensions keep their own.

How to change it

The style must exist in the drawing; if not, you are told so and the current one stays:

Dimension style "…" does not exist.

Example

Go back to the Standard style and check it:

(setvar "DIMSTYLE" "Standard")
(getvar "DIMSTYLE")   ; "Standard"

Common mistakes

See also

DIMSTYLE · DIMSCALE · DIMLINEAR

DISPSILH

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

With 1, solids and surfaces (3DSOLID, BODY, SURFACE) show in wireframe the silhouette of their curved faces as seen from the viewing direction, besides their edges and isolines. With 0, only edges and isolines.

Notes

See also

ISOLINES · FACETRES

DONUTID

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

Default inside diameter for DONUT; the command changes it to the value you enter.

DONUTOD

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

Default outside diameter for DONUT; the command changes it to the value you enter.

DRAGMODE

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

Dragging of objects while points are picked: 0 off, 1 on request, 2 always.

Notes

It accepts 0, 1 and 2. LinceCAD stores and returns it, but no command reads it: dragging with a preview does not depend on it. It is kept in the drawing for other programs.

Example

(getvar "DRAGMODE")    ; 2

See also

SNAPMODE · GRIDMODE

DYNCONSTRAINTMODE

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

With 1, hidden dynamic constraints show when their objects are selected. It is the Show hidden dynamic constraints for selected objects check box of CONSTRAINTSETTINGS.

Notes

As in AutoCAD, SETVAR accepts any integer. It is kept in the preferences; LinceCAD does not hide dynamic constraints yet.

See also

CONSTRAINTSETTINGS · DIMCONSTRAINT

DYNMODE

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

Whether dynamic input (F12) is on: a positive value turns it on and a negative one off, as in AutoCAD (from -3 to 3; 0 also turns it off).

Notes

LinceCAD does not tell pointer input from dimensional input: any positive value turns both on and, when read, the variable is 3 or -3.

How to change it

Example

After pressing F12 to turn dynamic input off:

(getvar "DYNMODE")   ; -3

Common mistakes

See also

OSNAP · ORTHO

ELEVATION

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

Elevation (Z coordinate) of new objects, in AutoCAD.

Notes

LinceCAD is a 2D program: it stores the value in the drawing for AutoCAD, but draws new objects at Z = 0.

See also

THICKNESS

EXTMAX

Type: 2D point · Stored in: drawing

Upper right corner of the drawing extents (read-only; updated on save).

Notes

It is read-only: trying to change it is an error. LinceCAD reads the value from the file and returns it, but does not recompute it while you draw; in a new drawing it keeps the starting value, a huge point (-1e20). To know the real extent use ZOOM Extents.

See also

EXTMIN · ZOOM

EXTMIN

Type: 2D point · Stored in: drawing

Lower left corner of the drawing extents (read-only; updated on save).

Notes

It is read-only: trying to change it is an error. LinceCAD reads the value from the file and returns it, but does not recompute it while you draw; in a new drawing it keeps the starting value, a huge point (1e20). To see the real extent use ZOOM Extents.

See also

EXTMAX · ZOOM

FACETRES

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

How finely the curved faces of solids, regions and surfaces are divided into triangles, from 0.01 (very coarse) to 10 (very fine). With 0.5 a circle or a cylinder is divided into 6° steps; doubling the value halves the steps. It affects how they look and what is computed on the tessellation (silhouettes).

Notes

See also

ISOLINES · DISPSILH

FIELDDISPLAY

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

Background of fields (FIELD) on screen.

ValueFields
0No background: they look like any other text
1On a gray background, which is not plotted

Notes

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

See also

FIELD · UPDATEFIELD · Text and styles

FILLETRAD

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

Fillet radius. FILLET proposes it and stores it when it is changed with its Radius option. With 0, the objects are trimmed or extended until they meet in a sharp corner.

See also

FILLET · CHAMFERA

FILLMODE

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

In AutoCAD, whether solids, donuts and wide polylines are filled.

ValueFill
0Outline only
1Filled

Notes

With 0 no fill is drawn (solid and gradient hatches, solids and wide polylines): solids keep their outline and wide polylines their centreline. It also applies when plotting.

See also

SOLID · DONUT · PLINE

GRIDMODE

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

1 shows the grid and 0 hides it, like F7, GRID and the status bar button.

Notes

It accepts 0 and 1. It is not saved in the drawing: it is a session setting that follows the Grid check box of DSETTINGS and the F7 key. Setting 0 only hides the grid; cursor snapping depends on SNAPMODE and works even if the grid is not visible.

Example

Hide the grid from a script:

(setvar "GRIDMODE" 0)
(getvar "GRIDMODE")    ; 0

See also

GRID · SNAPMODE

HALOGAP

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

Gap left by objects hidden behind others, as a % of a unit.

Notes

It accepts 0 to 100. 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 gap left by objects hidden behind others in hidden-line views, in % of a unit; it is useful to programs that apply it.

Example

(setvar "HALOGAP" 5)
(getvar "HALOGAP")     ; 5

See also

HIDETEXT · VSCURRENT

HIDETEXT

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

Whether HIDE takes texts into account.

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 hidden-line removal takes text into account;.

Example

(getvar "HIDETEXT")    ; 1

See also

HALOGAP · VSCURRENT

HPBOUND

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

Object type created by BOUNDARY: 1, polylines; 0, regions. The Object type option and the dialog box change it.

HPGAPTOL

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

Hatch gap tolerance: when looking for the boundary with an internal point, HATCH closes gaps of up to this length between loose endpoints, as if they were joined. With 0, the boundary must be fully closed. It accepts 0 to 5000, in drawing units.

Notes

As in AutoCAD, it is not saved in the drawing. It only counts for boundaries found from an internal point, not for selected objects.

What it is for

In drawings that come from other programs or from a converted PDF, the lines of a room sometimes miss each other by a few millimeters. With HPGAPTOL at 0, HATCH does not find that boundary; with a tolerance a little larger than the gap, it treats it as closed and hatches the room without having to fix the lines.

How to change it

Specify a boundary gap tolerance value <…>:

Example

A drawing in meters with 2 cm gaps between the walls: type HPGAPTOL, 0.05, and click inside the room with HATCH.

Common mistakes

See also

HATCH · BOUNDARY · Hatches

HPANNOTATIVE

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

Whether the new hatch is annotative (0 or 1). It is the Annotative check box of the HATCH dialog box and the ANnotative option of -SOMBREA.

HPASSOC

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

Whether the new hatch is associative, that is, follows the objects of its boundary (0 or 1). It is the Associative check box of the HATCH dialog box.

HPBACKGROUNDCOLOR

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

Background color of new pattern hatches: "." (no background), a color index (1-255), one of the 7 standard names or a true color "RGB:R,G,B". It is the Background color list of the HATCH dialog box.

Notes

The background is painted under the pattern lines, inside the boundary and with the hatch transparency. ByLayer and ByBlock are not valid, as in AutoCAD. Solid and gradient hatches have no background. It is saved in the drawing the same way AutoCAD saves it, so the background is kept when the DWG or DXF is opened in AutoCAD and the other way round. It lasts for the session.

Example

(setvar "HPBACKGROUNDCOLOR" "RGB:255,240,200")
(setvar "HPBACKGROUNDCOLOR" ".")

See also

HATCH · HPCOLOR

HPBOUNDRETAIN

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

With 1, HATCH also creates the hatch boundary as an object (polyline) and the hatch is associated to it. It is the Retain boundaries list of the dialog box.

HPCOLOR

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

Color of new hatches: "." (the current color, CECOLOR), BYLAYER, BYBLOCK, a color index (1-255), one of the 7 standard names or "RGB:R,G,B". It is the Color list of the HATCH dialog box.

Notes

GETVAR returns it as AutoCAD does: ".", BYLAYER, BYBLOCK, the number or "RGB:R,G,B". It lasts for the session.

Example

(setvar "HPCOLOR" "1")
(setvar "HPCOLOR" ".")

See also

HATCH · HPBACKGROUNDCOLOR

HPDOUBLE

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

Cross-hatching of the user-defined pattern (0 or 1). It is remembered and saved with the hatch, as in AutoCAD.

Notes

It accepts 0 and 1. It only shows with the user-defined pattern: with 1 a second set of lines, perpendicular to the first, is drawn (cross hatch). It is remembered for the next hatch and saved with the hatch; with predefined patterns the value is saved without duplicating their lines. It lasts for the session.

Example

(setvar "HPDOUBLE" 1)
(getvar "HPDOUBLE")    ; 1

See also

HATCH · HPSPACE · HPLAYER

HPLAYER

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

Layer of the new hatch; "." is the current layer. The layer must exist.

Notes

The dot means "the current layer" and is the initial value. Any other name must be an existing layer; otherwise it is an error and the value is kept. It is used for the new hatches of HATCH, which are created on that layer even if the current one is another. It lasts for the session.

Example

Create hatches on the HATCH layer:

(setvar "HPLAYER" "HATCH")
(setvar "HPLAYER" ".")

See also

HATCH · HPSPACE · HPDOUBLE

HPSPACE

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

Spacing of the lines of the user-defined pattern, in drawing units (greater than 0).

Notes

It must be greater than 0 (a value of 0 or less is an error). It is only used with the user-defined pattern, not with predefined ones, and is remembered for the next HATCH. It lasts for the session and is not saved with the drawing.

Example

Hatching every 2.5 units:

(setvar "HPSPACE" 2.5)
(getvar "HPSPACE")     ; 2.5

See also

HATCH · HPDOUBLE · HPLAYER

HPTRANSPARENCY

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

Transparency of the new hatch: a percentage from 0 to 90 or "ByLayer". It is the Transparency control of the HATCH dialog box.

INDEXCTL

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

Layer and spatial indexes saved with the drawing (0 to 3).

Notes

It accepts 0 to 3 (initial value 0). 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 sum of 1 (layer index) and 2 (spatial index) that other programs save to open large drawings faster.

Example

(getvar "INDEXCTL")    ; 0

See also

PROXYGRAPHICS

INPUTSEARCHDELAY

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

Milliseconds (100 to 10,000) the command line waits after the last key before showing the suggestion list. It is also asked by Input Settings › Delay Time… on the 🔧 wrench.

Notes

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

Example

(setvar "INPUTSEARCHDELAY" 1000)

The list appears one second after you stop typing.

INSBASE

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

Base point of the drawing: the point placed at the insertion point when this file is inserted as a block into another drawing. It is entered as x,y or x,y,z coordinates.

Notes

As in AutoCAD, SETVAR and getvar show it in the current UCS. What is typed in SETVAR is taken in world coordinates (that is what AutoCAD 2027 does), and setvar takes it in the UCS: with a rotated UCS, (setvar "INSBASE" (getpoint)) leaves the point where it was picked.

WBLOCK stores the base point of the block as the INSBASE of the new file.

See also

INSERT · WBLOCK

INSNAME

Type: text · Stored in: session · Initial value: ""

Last block inserted with -INSERT: it is the name offered between < > in the next one; Enter uses it. . clears it.

See also

-INSERT · INSERT

ISOLINES

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

Number of isolines per direction used to draw the curved faces of solids and surfaces in wireframe (0 to 2047): lines of constant parameter on the surface, such as the rulings of a cylinder or the meridians and parallels of a sphere. With 0 only the edges are shown.

See also

FACETRES · DISPSILH

MENUBAR

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

With 1 the menu bar (File, Edit, View…) shows below the title bar, above the ribbon; with 0 it does not. It is also toggled with Show Menu Bar on the ▾ of the Quick Access toolbar. In the Classic workspace the menu bar is always shown.

Notes

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

Example

(setvar "MENUBAR" 1)

The menu bar appears.

MESHTYPE

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

Mesh type created when converting solids to meshes (CONVTOMESH and MESHSMOOTH):

See also

CONVTOMESH · MESH · MESHSMOOTH

SMOOTHMESHCONVERT

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

How CONVTOSOLID converts meshes into solids; the command reports it at the start ("Mesh conversion set to: …"):

With 0 and 1 the solid takes the smoothed shape of the mesh; with 2 and 3, its cage as is.

See also

CONVTOSOLID · MESHTYPE

LASTPOINT

Type: 3D point · Saved in: none · Initial value: 0,0,0

Last point given to a command, in the current UCS. It is the point @ refers to when a getpoint or getdist function without a base point receives relative coordinates.

Notes

It is changed by the points given to commands (clicked or typed), not by those of the AutoLISP get… functions, as in AutoCAD. It is read and changed with getvar and setvar.

Example

(setvar "LASTPOINT" '(100 100 0))
(getpoint "\nPoint: ")   ; typing @ returns (100.0 100.0 0.0)

See also

getpoint · Coordinates

LAYOUTCREATEVIEWPORT

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

Whether new layouts get a viewport showing the model extents: 0 no, 1 yes.

Notes

It accepts 0 and 1 (initial value 1). With 1 every new layout starts with a viewport showing the model extents, a little inside the printable area; with 0 it starts empty and viewports are created later with MVIEW. It does not change layouts that already exist. It is not saved in the drawing: it is a session preference (a check box in OPTIONS).

Example

(setvar "LAYOUTCREATEVIEWPORT" 0)
(getvar "LAYOUTCREATEVIEWPORT")  ; 0

See also

LAYOUT · MVIEW

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 · CAD with a perpetual license