System Variables (5 of 5)
- VSCURRENT
- OFFSETDIST
- OFFSETGAPTYPE
- OFFSETERASE
- SELECTIONCYCLING
- SELECTSIMILARMODE
- ARRAYASSOCIATIVITY
- ARRAYTYPE
- DISTANCE
- TRIMEXTENDMODE
- EDGEMODE
- PROJMODE
- TRIMMODE
- CHAMMODE
- CHAMFERC
- CHAMFERD
- COPYMODE
- POLARADD
- POLARMODE
- POLARDIST
- SNAPTYPE
- OS3DMODE
- APERTURE
- DYNPROMPT
- DYNCOORD
- QPSETTINGS
- QPLOCATION
- QDIMMODE
- QDIMFLAGS
- MARKERSIZE
VSCURRENT
Type: text · Stored in: drawing (in the viewport) · Initial value: 2dWireframe
Name of the visual style of the current viewport; changing it does the same as VSCURRENT.
Notes
It accepts the full name (2dWireframe, Wireframe, Hidden, Realistic, Shaded, Shaded with edges, X-Ray) or its abbreviations (2, W, H, R, S, A, X), with or without an underscore; an unknown name is an error and does not change the style. It only affects the current viewport and is saved with it. It is the same as choosing the style with VSCURRENT.
Example
(setvar "VSCURRENT" "Hidden") (getvar "VSCURRENT") ; "Hidden" (setvar "VSCURRENT" "2dWireframe")
OFFSETDIST
Type: real · Stored in: session · Initial value: -1
Distance for OFFSET. A negative value means "Through" (the default option): the offset passes through the point you give. OFFSET remembers it and offers it between < >.
See also
OFFSETGAPTYPE
Type: integer · Stored in: session · Initial value: 0
How OFFSET closes the gaps between polyline segments: 0 extends, 1 fillets, 2 chamfers. It is stored, but offset always applies "extend".
See also
OFFSETERASE
Type: integer · Stored in: session · Initial value: 0
Whether OFFSET erases the source object (1) or keeps it (0): it is the Erase option of OFFSET, which offers it between < > and shows it in "Current settings".
See also
SELECTIONCYCLING
Type: integer · Saved in: session · Initial value: 0
Selection cycling: 0, off; 2, when a click touches several overlapping objects, a list next to the cursor (type and layer) lets you choose which one to select; 1, on without the list (in LinceCAD, like 0); negative, off keeping the mode. It is changed on the Selection Cycling tab of DSETTINGS. AutoCAD 2027 sets it to 0.
See also
SELECTSIMILARMODE
Type: integer · Stored in: session · Initial value: 130
Properties that must match in SELECTSIMILAR, besides the object type: the sum of 1 color, 2 layer, 4 linetype, 8 linetype scale, 16 lineweight, 32 plot style (accepted but not compared), 64 object style (text or dimension style) and 128 name (of a block). 130 is layer and name, as in AutoCAD.
See also
ARRAYASSOCIATIVITY
Type: integer · Stored in: session · Initial value: 1
Whether new arrays of ARRAY, ARRAYRECT and ARRAYPOLAR are associative (1) or separate objects (0). The Associative option of those prompts changes it, as in AutoCAD.
See also
ARRAYTYPE
Type: integer · Stored in: session · Initial value: 0
Array type that ARRAY proposes by default: the last one used (0 rectangular, 1 path, 2 polar), as in AutoCAD.
See also
DISTANCE
Type: real · Stored in: session · Read-only · Initial value: 0
Last distance measured with DIST (with Multiple points, the total), as in AutoCAD.
See also
TRIMEXTENDMODE
Type: integer · Stored in: session · Initial value: 1
Mode of TRIM and EXTEND: 1 quick (every object is an edge, none to select) and 0 standard (edges are selected).
See also
EDGEMODE
Type: integer · Stored in: session · Initial value: 0
Edges of TRIM and EXTEND in standard mode: 0 does not extend them and 1 extends them (Edge > Extend option).
Notes
It only accepts 0 and 1. It matters when the cutting or boundary object does not actually cross the object to trim or extend: with 1, straight edges and arcs are extended in imagination until they cut. It is only asked in standard mode (TRIMEXTENDMODE = 0); in quick mode, the initial one, every object is an edge and the Edge option is not asked. It lasts for the session.
Example
(setvar "EDGEMODE" 1) (getvar "EDGEMODE") ; 1
See also
PROJMODE
Type: integer · Stored in: session · Initial value: 1
Projection of TRIM and EXTEND: 0 none, 1 UCS and 2 view. In 2D it does not change the result.
Notes
It accepts 0, 1 and 2. In a flat (2D) drawing the three values give the same result, because every object is on the same plane. It only shows in 3D, when the boundary and the object are not at the same height. It lasts for the session.
Example
(getvar "PROJMODE") ; 1
See also
TRIMMODE
Type: integer · Stored in: session · Initial value: 1
Whether FILLET and CHAMFER trim the objects (1) or only add the arc or the chamfer (0).
Notes
It only accepts 0 and 1. With 1 (the initial value), FILLET and CHAMFER trim or extend both lines up to the corner or the arc; with 0 they draw the arc or the chamfer and leave the lines as they were, which is useful to finish without touching the rest. It applies to FILLET and CHAMFER, not to TRIM. It lasts for the session.
Example
Fillet without trimming the lines:
(setvar "TRIMMODE" 0) (getvar "TRIMMODE") ; 0 (setvar "TRIMMODE" 1)
See also
CHAMMODE
Type: integer · Stored in: session · Initial value: 0
Method of CHAMFER: 0 two distances and 1 length and angle.
Notes
It only accepts 0 and 1. CHAMFER changes it when the Method option is chosen. With 0, CHAMFERA and CHAMFERB are used; with 1, CHAMFERC and CHAMFERD. It lasts for the session and is not saved in the drawing.
Example
(setvar "CHAMMODE" 1) (getvar "CHAMMODE") ; 1
See also
CHAMFERC
Type: real · Stored in: drawing · Initial value: 0
Chamfer length on the first line when the method is angle.
Notes
It is only used with the length and angle method (CHAMMODE = 1). It is a length (the drawing units are accepted) and cannot be negative. It is saved in the drawing. If CHAMMODE is 0, CHAMFER does not look at it.
Example
A chamfer 10 long at 30 degrees (the angle is in radians in the variable):
(setvar "CHAMMODE" 1) (setvar "CHAMFERC" 10) (setvar "CHAMFERD" (/ pi 6))
See also
CHAMFERD
Type: real · Stored in: drawing · Initial value: 0
Chamfer angle with the first line (in radians) when the method is angle. CHAMFER asks for it in degrees.
Notes
The variable holds the angle in radians, but CHAMFER asks for it and shows it in degrees. It only counts with the length and angle method (CHAMMODE = 1) and cannot be negative. It is saved in the drawing.
Example
45 degree angle:
(setvar "CHAMMODE" 1) (setvar "CHAMFERD" (/ pi 4))
See also
COPYMODE
Type: integer · Stored in: session · Initial value: 0
Mode of COPY: 0 multiple (keeps asking for points) and 1 single (one copy and it ends).
Notes
It only accepts 0 and 1. COPY changes it with its Mode option. With 1, the command ends after the first destination point, so several copies need several commands; with 0 you can keep copying until Enter. It lasts for the session and is not saved in the drawing.
Example
(setvar "COPYMODE" 1) (getvar "COPYMODE") ; 1
See also
POLARADD
Type: text · Saved in: session · Initial value: empty
Additional polar tracking angles, separated by semicolons. They are used in addition to multiples of POLARANG.
Notes
Each angle must be between 0 and 360 (not including the ends); they are separated by semicolons or spaces. LinceCAD sorts them and drops duplicates. getvar returns them with four decimals, separated by commas. An invalid value is an error and keeps the previous list. An empty string clears it. It lasts for the session.
Example
Add guides at 30 and 135 degrees:
(setvar "POLARADD" "30;135") (getvar "POLARADD") ; "30.0000,135.0000"
See also
POLARMODE
Type: integer · Saved in: session · Initial value: 0
Polar tracking angle measurement: 0 absolute from the X axis and 1 relative to the direction of the last known segment.
See also
POLARDIST
Type: real · Saved in: session · Initial value: 10
Cursor increment distance while polar tracking is active and the cursor follows a tracking angle.
Notes
It must be greater than 0 and accepts the drawing units. It is only used with SNAPTYPE = 1 (polar snap) and SNAPMODE = 1: the cursor jumps from that distance to the next along the guide. With SNAPTYPE = 0 it has no effect. It lasts for the session.
Example
(setvar "POLARDIST" 2.5) (getvar "POLARDIST") ; 2.5
See also
SNAPTYPE
Type: integer · Saved in: session · Initial value: 0
Cursor snap type: 0 grid snap and 1 polar snap (at POLARDIST and the tracking angles).
Notes
It accepts 0 and 1. With 0 the cursor jumps to grid points and with 1 to polar tracking points, spaced by POLARDIST and at the angles of POLARANG and POLARADD. It only shows with SNAPMODE at 1. It lasts for the session.
Example
(setvar "SNAPTYPE" 1) (setvar "POLARDIST" 5) (setvar "SNAPMODE" 1)
See also
OS3DMODE
Type: integer · Saved in: session · Initial value: 255
Active 3D object snaps, as a sum of bits: 1 endpoint, 2 midpoint, 4 center, 8 node, 16 quadrant, 32 intersection, 64 insertion and 128 perpendicular.
See also
APERTURE
Type: integer · Saved in: session · Initial value: 10
Size of the AutoSnap aperture box, in pixels (1 to 50). It limits the area around the cursor where object snaps are searched.
See also
DYNPROMPT
Type: integer · Saved in: session · Initial value: 1
Displays command prompts in the dynamic input next to the cursor (1) or only on the command line (0).
Notes
It accepts 0 and 1. It only shows with dynamic input on (DYNMODE). With 0 the prompts appear only on the command line and only the measurements remain next to the cursor. It lasts for the session.
Example
(setvar "DYNPROMPT" 0) (getvar "DYNPROMPT") ; 0
See also
DYNCOORD
Type: integer · Saved in: session · Initial value: 1
Dynamic input coordinates: 0 absolute and 1 relative to the last point when the command supports both.
Notes
It accepts 0 and 1. With 1 (the initial value), what you type in dynamic input for the next point is read as a distance and angle from the previous point (as if you typed @distance<angle); with 0 it is read as absolute coordinates. It only acts when there is already a base point. It lasts for the session.
Example
(setvar "DYNCOORD" 0) (getvar "DYNCOORD") ; 0
See also
QPSETTINGS
Type: integer · Saved in: session · Initial value: 1023
Fields displayed by Quick Properties, as a sum of bits: 1 general, 2 geometry, 4 text, 8 block, 16 dimension, 32 style, 64 annotation, 128 specific geometry, 256 dynamic properties and 512 custom properties.
See also
QPLOCATION
Type: integer · Saved in: session · Initial value: 1
Quick Properties location: 1 next to the cursor and 0 at the palette's fixed position.
Notes
It accepts 0 and 1. It defines where the Quick Properties panel appears when an object is selected: next to the cursor (1) or at the fixed position where the user left the palette (0). The panel itself is turned on with QPMODE. It lasts for the session.
Example
(setvar "QPLOCATION" 0) (getvar "QPLOCATION") ; 0
See also
QDIMMODE
Type: integer · Saved in: session · Initial value: 0
Dimension type created by QDIM: 0 horizontal or vertical linear, 1 aligned, 2 angular, 3 radius, 4 diameter and 5 ordinate.
See also
QDIMFLAGS
Type: integer · Saved in: session · Initial value: 0
Quick dimension association priority: 0 object endpoints and 1 intersections with other objects.
Notes
It accepts 0 and 1. It is kept for the session and shown on the quick dimension tab of DSETTINGS, but the quick dimension command does not read it yet: it keeps using the points it chooses itself.
See also
MARKERSIZE
Type: integer · Saved in: session · Initial value: 11
Size of the AutoSnap marker, in pixels (4 to 30). It does not change the aperture box size, which is set with APERTURE.
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