System Variables (2 of 5)
- DELOBJ
- DIMCEN
- DIMCONSTRAINTICON
- DIMSCALE
- DIMSTYLE
- DISPSILH
- DONUTID
- DONUTOD
- DRAGMODE
- DYNCONSTRAINTMODE
- DYNMODE
- ELEVATION
- EXTMAX
- EXTMIN
- FACETRES
- FIELDDISPLAY
- FILLETRAD
- FILLMODE
- GRIDMODE
- HALOGAP
- HIDETEXT
- HPBOUND
- HPGAPTOL
- HPANNOTATIVE
- HPASSOC
- HPBACKGROUNDCOLOR
- HPBOUNDRETAIN
- HPCOLOR
- HPDOUBLE
- HPLAYER
- HPSPACE
- HPTRANSPARENCY
- INDEXCTL
- INPUTSEARCHDELAY
- INSBASE
- INSNAME
- ISOLINES
- MENUBAR
- MESHTYPE
- SMOOTHMESHCONVERT
- LASTPOINT
- LAYOUTCREATEVIEWPORT
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
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
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
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
- In DIMSTYLE, by modifying the style: that is what new dimensions use.
- By typing DIMSCALE and the value (0 or greater), or with SETVAR.
- From AutoLISP:
(getvar "DIMSCALE")reads the value of the current style.
Example
(getvar "DIMSCALE") ; 1.0
Common mistakes
- Dimensions come out tiny or huge: the style's DIMSCALE does not match the plot scale; in a drawing in millimeters at 1:100 it should be 100.
- DIMSCALE was changed and new dimensions do not change: modify the style in DIMSTYLE; when a style is made current, the variable takes that style's value.
- A negative value is rejected: it must be 0 or greater.
See also
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
- In the DIMSTYLE dialog box, with the button that makes the selected style current.
- By typing DIMSTYLE and the name, or with SETVAR.
- From AutoLISP:
(setvar "DIMSTYLE" "ISO-25").
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
- New dimensions come out with a different text or arrowhead size: the current style is not the one expected; check it with
(getvar "DIMSTYLE")or in DIMSTYLE. - Changing DIMSTYLE does not change existing dimensions: each dimension keeps its style.
See also
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
- The silhouette is computed on the tessellation (see FACETRES): with a low FACETRES it may look jagged.
See also
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
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
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
- With F12 or the status bar button.
- By typing DYNMODE and the value (-3 to 3), or with SETVAR.
- From AutoLISP:
(setvar "DYNMODE" -3).
Example
After pressing F12 to turn dynamic input off:
(getvar "DYNMODE") ; -3
Common mistakes
- You set 1 or 2 and the variable then reads 3: LinceCAD does not separate pointer input from dimensional input; any positive value turns both on.
- The value is rejected: only the integers from -3 to 3 are valid.
- The next day it is back as before: it lasts for the session and is not saved in the drawing.
See also
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
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
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
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
- B-spline surfaces are divided by their knot spans, more finely the higher FACETRES is.
- Faces the program cannot evaluate (rolling-ball fillets and other procedural surfaces without an approximation saved in the drawing) are shown only with their edges.
See also
FIELDDISPLAY
Type: integer · Stored in: session · Initial value: 1
Background of fields (FIELD) on screen.
| Value | Fields |
|---|---|
| 0 | No background: they look like any other text |
| 1 | On 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
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
FILLMODE
Type: integer · Stored in: drawing · Initial value: 1
In AutoCAD, whether solids, donuts and wide polylines are filled.
| Value | Fill |
|---|---|
| 0 | Outline only |
| 1 | Filled |
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
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
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
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
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 <…>:
- From AutoLISP:
(setvar "HPGAPTOL" 0.05).
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
- The boundary is still not found: some gap is larger than the tolerance (or the tolerance is in a different unit from the drawing). Increase the value or close the gap.
- The value is rejected: it must be between 0 and 5000.
- When the program is opened again it is 0: it is not saved in the drawing.
See also
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
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
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
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
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
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
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
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
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
MESHTYPE
Type: integer · Saved in: session · Initial value: 1
Mesh type created when converting solids to meshes (CONVTOMESH and MESHSMOOTH):
0: legacy faceted mesh (POLYFACEMESH): triangles with no smoothness information.1: SubD mesh (MESH), with smoothness levels (MESHSMOOTHMORE, MESHREFINE).
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: …"):
0: smooth and optimized.1: smooth and not optimized.2: faceted and optimized.3: faceted and not optimized.
With 0 and 1 the solid takes the smoothed shape of the mesh; with 2 and 3, its cage as is.
See also
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
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
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