System Variables (4 of 5)
- SETBYLAYERMODE
- SHADEDGE
- SHADEDIF
- SKETCHINC
- SKPOLY
- SKTOLERANCE
- SNAPISOPAIR
- SNAPMODE
- SNAPSTYL
- SORTENTS
- SPLFRAME
- SPLINESEGQS
- SPLINESEGS
- SPLINETYPE
- SURFTAB1
- SURFTAB2
- SPLDEGREE
- SPLKNOTS
- SPLMETHOD
- SURFTYPE
- SURFU
- SURFV
- TEXTEDITMODE
- TEXTQLTY
- TEXTSIZE
- TEXTSTYLE
- THICKNESS
- THUMBSAVE
- TILEMODE
- TRANSPARENCYDISPLAY
- UCSICON
- UNITMODE
- USRTIMER
- VISRETAIN
- WIPEOUTFRAME
- XFADECTL
- LENSLENGTH
- PERSPECTIVE
- TARGET
- VIEWCTR
- VIEWDIR
- VIEWSIZE
- VIEWTWIST
- VPLAYEROVERRIDESMODE
SETBYLAYERMODE
Type: integer · Saved in: session · Initial value: 255
Which properties SETBYLAYER sets to ByLayer: the sum of 1 (color), 2 (linetype), 4 (lineweight), 8 (material), 16 (plot style) and 128 (transparency). Bits 32 (change ByBlock too) and 64 (include blocks) are kept, but the command asks for them every time.
See also
SHADEDGE
Type: integer · Stored in: drawing · Initial value: 3
How faces and edges are shaded (0 to 3).
Notes
It accepts 0 to 3 (initial value 3). 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 old way of choosing how edges are shaded; in LinceCAD the visual styles give it (VSCURRENT).
Example
(getvar "SHADEDGE") ; 3
See also
SHADEDIF
Type: integer · Stored in: drawing · Initial value: 70
Diffuse versus ambient light when shading, in %.
Notes
It accepts 0 to 100 (initial value 70, in %). 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 gives the ratio of diffuse to ambient light in the old shading; LinceCAD does not use it for shading.
Example
(getvar "SHADEDIF") ; 70
See also
SKETCHINC
Type: real · Stored in: session · Initial value: 1
Distance between the points that SKETCH records when the mouse moves with the pen down (Increment option).
See also
SKPOLY
Type: integer · Stored in: session · Initial value: 0
What SKETCH creates: 0 lines, 1 polylines and 2 splines (Type option).
Notes
It accepts 0, 1 and 2. It is the type SKETCH uses by default; the Type option of SKETCH changes it. With 1 or 2 the strokes are saved as polylines or splines instead of many small lines, which is easier to edit. It lasts for the session.
Example
(setvar "SKPOLY" 1) (getvar "SKPOLY") ; 1
See also
SKTOLERANCE
Type: real · Stored in: session · Initial value: 0.5
How far the spline of SKETCH may deviate from the points of the stroke (fitTolerance option; only with SKPOLY = 2).
See also
SNAPISOPAIR
Type: integer · Stored in: drawing · Initial value: 0
Current isometric plane, the one followed by ortho, the grid, snap and the crosshairs when isometric drafting is on.
| Value | Plane |
|---|---|
| 0 | Left (axes at 90° and 150°) |
| 1 | Top (axes at 30° and 150°) |
| 2 | Right (axes at 30° and 90°) |
Notes
F5 and Ctrl+E switch to the next plane. It is saved in the drawing's current viewport, as in AutoCAD.
See also
SNAPMODE
Type: integer · Saved in: session · Initial value: 0
1 snaps the cursor to the grid nodes (F9, SNAP).
Notes
It accepts 0 and 1. It is not saved in the drawing: it follows the Snap button of the status bar and F9. What the cursor snaps to is decided by SNAPTYPE (grid or polar).
Example
(setvar "SNAPMODE" 1) (getvar "SNAPMODE") ; 1
See also
SNAPSTYL
Type: integer · Stored in: drawing · Initial value: 0
Snap and grid style: normal or isometric.
| Value | Style |
|---|---|
| 0 | Rectangular: horizontal and vertical axes (or those of the UCS) |
| 1 | Isometric, in the plane of SNAPISOPAIR |
Notes
It is what ISODRAFT and the ISO button on the status bar change. It is saved in the drawing's current viewport, as in AutoCAD.
What it is for
With 1 the cursor, the grid, snap and ortho mode follow the isometric axes (30°, 90° and 150°), to draw isometric views in 2D. The isometric working plane (left, top or right) is given by SNAPISOPAIR.
How to change it
- With ISODRAFT or the ISO button on the status bar.
- By typing SNAPSTYL and the value (0 or 1), or with SETVAR.
- From AutoLISP:
(setvar "SNAPSTYL" 1).
Example
Switch to isometric and check it:
(setvar "SNAPSTYL" 1) (getvar "SNAPSTYL") ; 1
To change the isometric plane, use ISOPLANE.
Common mistakes
- Lines do not come out at 30°: SNAPSTYL is 0 or ortho mode is off.
- The value is rejected: only 0 and 1 are valid.
See also
SORTENTS
Type: integer · Stored in: drawing · Initial value: 127
Which operations follow the draw order of objects (sum of bits).
Notes
It accepts 0 to 127 (initial value 127), as a sum of bits. 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. The actual draw order is saved by DRAWORDER in a table of the drawing and LinceCAD respects it when building the scene, without reading these bits.
Example
(getvar "SORTENTS") ; 127
See also
SPLFRAME
Type: integer · Stored in: drawing · Initial value: 0
Whether the control frames of spline-fit polylines and invisible faces are shown.
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. With 1, other programs show the control polygons of curved polylines and the invisible edges of meshes.
Example
(getvar "SPLFRAME") ; 0
See also
SPLINESEGQS
Type: integer · Stored in: drawing · Initial value: 6
Segments of the surfaces of smoothed mesh polylines.
Notes
It accepts 0 to 32767 (initial value 6). 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. These are the segments of curved mesh surfaces; the resolution of LinceCAD surfaces is given by SURFTAB1 and SURFTAB2.
Example
(getvar "SPLINESEGQS") ; 6
See also
SPLINESEGS
Type: integer · Stored in: drawing · Initial value: 8
Number of straight segments with which the Spline option of PEDIT approximates each span of the polyline. More segments give a smoother curve. From 1 to 32767.
See also
SPLINETYPE
Type: integer · Stored in: drawing · Initial value: 6
Curve type used by the Spline option of PEDIT.
| Value | Curve |
|---|---|
| 5 | Quadratic B-spline |
| 6 | Cubic B-spline |
Notes
It only accepts 5 and 6 (any other value is an error). The Spline option of PEDIT reads it: with 5 the curve is a quadratic B-spline and with 6 a cubic one, which is smoother. The curve comes out with as many segments as SPLINESEGS. It is saved in the drawing.
Example
(setvar "SPLINETYPE" 5) (getvar "SPLINETYPE") ; 5
See also
PEDIT · SPLINESEGS · SPLINE
SURFTAB1
Type: integer · Saved in: none · Initial value: 6
Number of divisions for ruled and tabulated surfaces (SUPREGLA, SUPTAB) and for revolutions (SUPREV) along the curve direction. Values from 2 to 256.
SURFTAB2
Type: integer · Saved in: none · Initial value: 6
Number of divisions for revolved (SUPREV) and edge-defined (SUPLADOS) surfaces in the other direction. Values from 2 to 256.
SPLDEGREE
Type: integer · Saved in: session · Initial value: 3
Degree with which SPLINE starts control-vertex splines (Degree option); the command keeps the last one. Accepts 1 to 5.
SPLKNOTS
Type: integer · Saved in: session · Initial value: 0
Knot parameterization with which SPLINE starts fit splines: 0 Chord, 1 Square root, 2 Uniform. The Knots option of the command changes it.
SPLMETHOD
Type: integer · Saved in: session · Initial value: 0
Method with which SPLINE starts: 0 Fit (fit points), 1 CV (control vertices). The Method option of the command changes it.
SURFTYPE
Type: integer · Stored in: drawing · Initial value: 6
Surface type when smoothing meshes: 5 quadratic B-spline, 6 cubic, 8 Bezier.
Notes
It accepts 5 to 8 (initial value 6): 5 quadratic B-spline, 6 cubic, 8 Bezier. 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 surface type other programs use when smoothing polygon meshes.
Example
(getvar "SURFTYPE") ; 6
See also
SURFU
Type: integer · Stored in: drawing · Initial value: 6
Density of smoothed surfaces in the M direction.
Notes
It accepts 0 to 200 (initial value 6). 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 density in the M direction of smoothed surfaces in other programs; LinceCAD does not use it.
Example
(getvar "SURFU") ; 6
See also
SURFV
Type: integer · Stored in: drawing · Initial value: 6
Density of smoothed surfaces in the N direction.
Notes
It accepts 0 to 200 (initial value 6). 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 density in the N direction of smoothed surfaces in other programs; LinceCAD does not use it.
Example
(getvar "SURFV") ; 6
See also
TEXTEDITMODE
Type: integer · Saved in: session · Initial value: 0
Mode of TEXTEDIT, as in AutoCAD: 0 (Multiple) asks for another annotation object after each edit, until you press Enter; 1 (Single) ends after editing one. 2 works as 0.
Notes
The Mode option of TEXTEDIT changes it. It applies to the session (it is not saved in the drawing).
Example
(setvar "TEXTEDITMODE" 1)
See also
TEXTQLTY
Type: integer · Stored in: drawing · Initial value: 50
Resolution of TrueType texts when plotting, from 0 to 100.
Notes
It accepts 0 to 100 (initial value 50). 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 resolution other programs use to plot TrueType text; LinceCAD does not use it.
Example
(getvar "TEXTQLTY") ; 50
See also
TEXTSIZE
Type: real · Stored in: drawing · Initial value: 2.5
Default text height, when the current text style has no fixed height. TEXT, MTEXT and ATTDEF propose it and store here the last height chosen; it is also used by the attributes created by BATTMAN and by texts created with entmake without a height. It must be greater than 0.
See also
TEXTSTYLE
Type: text · Stored in: drawing · Initial value: Standard
Current text style: the one used by new text and attributes. Enter the name of an existing style.
Notes
Enter the name of an existing style (case does not matter); if it does not exist it is an error and the current one is kept. It also changes when the current style is picked in STYLE or on the ribbon. Texts, multiline texts and attributes created afterwards use that style. The initial value in a new drawing is Standard.
Example
(setvar "TEXTSTYLE" "Standard") (getvar "TEXTSTYLE") ; "Standard"
See also
THICKNESS
Type: real · Stored in: drawing · Initial value: 0
Extrusion thickness (in Z) of new objects, in AutoCAD.
Notes
LinceCAD stores the value in the drawing for AutoCAD, but creates objects without thickness: give it afterwards with CHANGE, Thickness option.
See also
THUMBSAVE
Type: integer · Stored in: session · Initial value: 1
Whether saving a DWG includes the drawing's preview (thumbnail).
| Value | Preview |
|---|---|
| 0 | Not updated: the DWG keeps the one it had |
| 1 | Redone on save from the model view |
Notes
The thumbnail is shown by the Open dialog and by the file explorer. It is only written in DWG version 2013 or later (in earlier ones LinceCAD cannot write it). It is a picture of the whole model on white paper, 256 × 256 px.
TILEMODE
Type: integer · Stored in: drawing · Initial value: 1
Whether the Model tab (1) or a layout (0) is active (read-only: change it with the tabs).
Notes
It is read-only: trying to change it is an error that says the variable is read-only. Switching between model and a layout is done with the tabs at the bottom of the window or with LAYOUT. LinceCAD reads the value from the file, but does not update it when the tab changes.
Example
(getvar "TILEMODE") ; 1
See also
TRANSPARENCYDISPLAY
Type: integer · Stored in: session · Initial value: 1
Whether the transparency of objects and layers is displayed on screen.
| Value | Transparency |
|---|---|
| 0 | Not displayed: everything is drawn opaque |
| 1 | Displayed |
Notes
- It is the same as the TRANSP button on the status bar.
- It only changes how the drawing looks: it does not change the objects or the plotted output.
- It lasts for the session: it is not saved in the drawing and goes back to 1 when the program starts.
See also
UCSICON
Type: integer · Stored in: drawing · Initial value: 3
UCS icon in model space. It is the sum of these values:
| Value | Icon |
|---|---|
| 0 | Hidden |
| 1 | Displayed |
| 2 | At the UCS origin, if it is visible on screen (otherwise, at the lower left) |
With 3, displayed and at the origin.
Notes
It accepts 0 to 3. The value is saved in the drawing's active viewport. UCSICON changes the same bits from a menu (On, Off, Origin). Bit 2 only shows with bit 1 on: the icon sits at the origin if it is visible on screen and otherwise in the lower left corner. The initial value is 3.
Example
Hide the icon:
(setvar "UCSICON" 0) (getvar "UCSICON") ; 0
See also
UNITMODE
Type: integer · Stored in: drawing · Initial value: 0
Whether fractional and feet-and-inches units are shown as typed (1) or with spaces (0).
Notes
It accepts 0 and 1 (initial value 0). In other programs it decides whether fractional and feet-and-inches units are shown as typed (1) or with spaces (0). LinceCAD stores and returns the value and keeps it in the DWG and DXF, but no command reads it: the length format is given by LUNITS and LUPREC.
Example
(getvar "UNITMODE") ; 0
See also
USRTIMER
Type: integer · Stored in: drawing · Initial value: 1
Whether the TIME user timer is running.
Notes
It accepts 0 and 1. The On, Off or Reset option of the user timer in TIME changes it, and also shows the accumulated time. Setting it to 0 stops the timer and keeps what was counted; with 1 it counts again from then on. It is saved in the drawing.
Example
(getvar "USRTIMER") ; 1
See also
VISRETAIN
Type: integer · Stored in: drawing · Initial value: 1
What happens to the layers of external references (reference|layer) when they are reloaded.
| Value | Layers |
|---|---|
| 0 | They take again the color, linetype and state they have in the reference file |
| 1 | They keep what has been changed in this drawing (color, on, frozen...) |
Notes
It accepts 0 and 1. It only matters when an external reference is reloaded: with 1 the reference|layer layers that already existed keep the color, linetype and state (on, frozen…) given to them in this drawing; with 0 they are restored to those of the reference file. New layers of the reference always come in with their properties.
Example
(setvar "VISRETAIN" 1) (getvar "VISRETAIN") ; 1
See also
WIPEOUTFRAME
Type: integer · Saved in: drawing · Initial value: 1
Wipeout frames: 0, not displayed or plotted; 1, displayed and plotted; 2, displayed but not plotted. It is the Frames option of WIPEOUT.
XFADECTL
Type: integer · Stored in: session · Initial value: 70
How much the content of external references (what is on reference|layer layers) is faded on screen, from 0 (not at all) to 90 %, to tell it apart from what is drawn in this drawing.
Notes
- It only affects the screen: when plotting, references come out in their colors.
- In AutoCAD this fading is XDWGFADECTL; its XFADECTL is the one for in-place reference editing, which LinceCAD does not have.
- It applies to the session: it is not saved in the drawing.
See also
LENSLENGTH
Type: real · Stored in: drawing · Read-only · Initial value: 50
Lens length in millimeters of the perspective view of the current viewport (with a 35 mm film).
Notes
It is read-only (changing it is an error). It is 50 mm by default and only affects the perspective view (PERSPECTIVE = 1): a shorter focal length widens the angle and distorts more. It is saved with the active viewport.
Example
(getvar "LENSLENGTH") ; 50.0
See also
PERSPECTIVE
Type: integer · Stored in: drawing · Initial value: 0
| Value | View |
|---|---|
| 0 | Parallel |
| 1 | Perspective (zooming moves the viewer towards the target) |
Notes
It only accepts 0 and 1 (typed as is on the command line; any other value is an error). Setting 1 frames the view again. The change shows at once and is saved with the drawing.
Example
(setvar "PERSPECTIVE" 1) (getvar "PERSPECTIVE") ; 1
See also
LENSLENGTH · 3DORBIT · -VIEW
TARGET
Type: 3D point · Stored in: drawing · Read-only · Initial value: 0,0,0
Target of the view of the current viewport, in the current UCS, as in AutoCAD: the point 3DORBIT rotates around.
Notes
It is read-only (changing it is an error). getvar returns it as a point (a list of three numbers) in the current UCS. To change the view target use VPOINT, 3DORBIT or a named view.
Example
(getvar "TARGET") ; (0.0 0.0 0.0)
See also
VIEWCTR
Type: 3D point · Stored in: drawing · Read-only
Center of the view of the current viewport, on the XY plane along the viewing direction, as AutoCAD gives it.
Notes
It is read-only (changing it is an error). getvar returns it as a point (a list of three numbers) in the current UCS, like AutoCAD, on the XY plane seen along the viewing direction. ZOOM and PAN move it; to save a view and return to it use VIEW.
Example
(getvar "VIEWCTR") ; (0.0 0.0 0.0)
See also
VIEWDIR
Type: 3D vector · Stored in: drawing · Read-only · Initial value: 0,0,1
Viewing direction of the current viewport, from the target to the viewer, in the current UCS (as in AutoCAD). It is changed with VPOINT, -VIEW, 3DORBIT or PLAN. getvar returns it as a list of three numbers.
VIEWSIZE
Type: real · Stored in: drawing · Read-only
Height of the view of the current viewport, in drawing units.
Notes
It is read-only (changing it is an error). It changes with ZOOM; a small value is a very close view. It tells the visible area in drawing units: the visible width is the height times the viewport's aspect ratio.
Example
(getvar "VIEWSIZE") ; 506.0
See also
VIEWTWIST
Type: angle · Stored in: drawing · Read-only · Initial value: 0
Twist of the view of the current viewport (set by PLAN with a rotated UCS and by 3DFORBIT).
Notes
It is read-only (changing it is an error) and is returned in the drawing's angle format (AUNITS). It is 0 with the view unrotated. PLAN with a rotated UCS and FREEORBIT change it.
Example
(getvar "VIEWTWIST") ; 0
See also
VPLAYEROVERRIDESMODE
Type: integer · Stored in: session · Initial value: 1
Whether the layer overrides of each layout viewport (color, linetype, lineweight and transparency set in the viewport columns of the LAYER manager) are shown and plotted inside the viewports.
| Value | Overrides |
|---|---|
| 0 | Not shown or plotted: each viewport shows the layers with their usual properties |
| 1 | Shown and plotted: anything ByLayer on an overridden layer uses that viewport's value |
Notes
As in AutoCAD 2027, it is not saved in the drawing: it goes back to 1 when the program starts again. The overrides stay in the drawing even with 0. They affect whatever uses the layer's color, linetype, lineweight or transparency ByLayer, including layer 0 objects of a block inserted on that layer; objects with their own value do not change.
Example
VPLAYEROVERRIDESMODE 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 · AutoCAD LT alternative