System Variables (3 of 5)
- LAYLOCKFADECTL
- LIMCHECK
- LIMMAX
- LIMMIN
- LOFTANG1
- LOFTANG2
- LOFTMAG1
- LOFTMAG2
- LOFTNORMALS
- LOFTPARAM
- LUNITS
- LUPREC
- MAXACTVP
- MEASUREMENT
- MIRRTEXT
- MSLTSCALE
- NAVBARDISPLAY
- NAVVCUBEOPACITY
- ORTHOMODE
- OSMODE
- PARAMETERSSTATUS
- PDFFRAME
- PDSIZE
- PELEVATION
- PELLIPSE
- PICKADD
- PICKFIRST
- PLINEGEN
- PLINEWID
- POLYSIDES
- POLARANG
- PROXYGRAPHICS
- PSOLHEIGHT
- PSOLWIDTH
- PSTYLEMODE
- QPMODE
- QTEXTMODE
- REFPATHTYPE
- REGENMODE
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
LIMCHECK
Type: integer · Stored in: drawing · Initial value: 0
Whether drawing outside the drawing limits is checked.
| Value | Checking |
|---|---|
| 0 | Off |
| 1 | On |
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
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
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
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
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
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
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
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
- From 2 to 6 the solid is faceted. With two sections, or normal to both or to all, it is AutoCAD 2027's (volume within 0.7 %); with three or more and a single normal or draft angles AutoCAD also fits the middle sections differently and the result may differ noticeably.
- With guides or a path it only matters whether it is 0 (ruled) or not.
See also
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
LUNITS
Type: integer · Stored in: drawing · Initial value: 2
Format in which the program writes lengths and coordinates.
| Value | Format | Example |
|---|---|---|
| 1 | Scientific | 1.5500E+01 |
| 2 | Decimal | 15.5000 |
| 3 | Engineering | 1'-3.5000" |
| 4 | Architectural | 1'-3 1/2" |
| 5 | Fractional | 15 1/2 |
In the engineering and architectural formats the drawing unit is the inch, as in AutoCAD.
See also
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
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
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
MIRRTEXT
Type: integer · Stored in: drawing · Initial value: 0
How MIRROR handles text, multiline text and attributes.
| Value | Text |
|---|---|
| 0 | Moved, but still reads normally |
| 1 | Mirrored 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
- After mirroring, the texts read backwards: MIRRTEXT was 1. Undo, set it to 0 and mirror again.
- Texts already mirrored are not fixed by changing the variable: it only counts at the moment of mirroring.
- The value is rejected: only 0 and 1 are valid.
See also
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.
| Value | Annotation scale in model space |
|---|---|
| 0 | Not applied |
| 1 | Multiplies 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
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
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
- In the OSNAP dialog box, by ticking the snaps.
- With F3 or the status bar button (it only turns them on or off, with 16384).
- By typing OSMODE and the value (0 to 32767), or with SETVAR.
- From AutoLISP:
(setvar "OSMODE" 33).
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
- It lasts for the session: it is not saved in the drawing.
- The values 1024, 2048 and 8192 (geometric center, apparent intersection and parallel in AutoCAD) have no object snap in LinceCAD: they turn nothing on and are not kept when the variable is read.
Common mistakes
- No snap works even though they are ticked: the value includes 16384 (F3 off). Press F3.
- A routine leaves the snaps changed: it was interrupted before restoring the value; set yours again (for example, 4133).
See also
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
PDFFRAME
Type: integer · Stored in: session · Initial value: 1
Frame of the PDF underlays in the drawing.
| Value | Frame |
|---|---|
| 0 | Hidden (the frame of an underlay whose file is not found is shown anyway) |
| 1 | Displayed and plotted |
| 2 | Displayed 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).
0: 5 % of the window height.- Greater than 0: size in drawing units (it grows and shrinks with the zoom).
- Less than 0: percentage of the window height (
-10= 10 %), the same at any zoom.
See also
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
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
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
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
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
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
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
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
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
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
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
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
QPMODE
Type: integer · Stored in: session · Initial value: 1
Whether the quick properties panel appears when objects are selected with no command running.
| Value | Quick properties panel |
|---|---|
| 0 | Off |
| 1 | On |
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
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
REFPATHTYPE
Type: integer · Stored in: session · Initial value: 1
How the path of the external references and PDF underlays you attach is saved.
| Value | Path |
|---|---|
| 0 | No path: just the file name, which is looked for in the drawing's folder |
| 1 | Relative to the drawing's folder |
| 2 | Full |
Notes
- XATTACH offers it in its pathType option. PDFATTACH saves a relative path with 1 and a full one with 0 or 2.
- If the drawing has not been saved yet or the file is on another drive, the relative path is saved as a full one.
- It applies to the session: it is not saved in the drawing (in AutoCAD it is a program setting).
See also
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
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