System variables
Type the name of the variable (or SETVAR, alias SET, and then the name); the command line shows the current value between < > and asks for the new one. Enter keeps the value; a value out of range is reported and the question is repeated. In SETVAR, ? lists all variables with their current values.
| Variable | What it controls | Values | Default |
|---|---|---|---|
| CURSORSIZE | Size of the cursor crosshairs, in % of the screen | 1 to 100 | 5 |
| GRIDUNIT | Grid spacing | Positive length | Follows the unit |
| OSMODE | Object snap modes (sum of the bits) | 0 to 16383 | 4133 |
| POLARANG | Polar increment, in degrees (in the profile) | Greater than 0 up to 360 | 90 |
| POLARMODE | Polar mode (in the profile): 1 measurement relative to the last segment, 2 tracking along all polar angles, 4 use the additional angles, 8 acquire only with Shift | 0 to 15 | 0 |
| POLARADDANG | Additional polar angles, separated by semicolons (in the profile); . clears | Up to 10 angles from 0 to 360 | (empty) |
| PDMODE | Point symbol | 0–4, adding 32 and/or 64 | 0 |
| PDSIZE | Point size | Positive (units), negative (% of the screen) or 0; comma or period as decimal separator | 0 |
| FILEDIA | File dialogs: 1 opens the system dialog; 0 asks for the name on the command line | 0 or 1 | 1 |
| INSUNITSDEFSOURCE | Unit of an incoming unitless file (INSERT, XREF, or opened with FILEDIA 0), by the INSUNITS code | 0 to 24 | 6 (meters) |
| INSUNITSDEFTARGET | Unit of the unitless drawing that receives an INSERT or XREF | 0 to 24 | 6 (meters) |
| SNAPUNIT | Grid snap spacing (F9) | Positive length | That of the grid (GRIDUNIT) |
| TEXTSIZE | Height of the next TEXT and MTEXT | Positive length | 0.25 m |
| SAVETIME | Minutes between automatic saves (0 turns it off) | 0 to 600 | 10 |
| LAYLOCKFADECTL | Fading of objects on locked layers, in % (in the profile); negative turns it off while keeping the value | -90 to 90 | 50 |
| TEXTFILL | TrueType letters filled (1) or outline only (0), on screen, in the plot and in PDF (in the profile) | 0 or 1 | 1 |
| MIRRTEXT | Text in MIRROR: 0 stays readable; 1 mirrors the letters | 0 or 1 | 0 |
| PICKADD | Picks: 0 replace the selection (Shift adds); 1 add (Shift removes); 2 add and SELECT leaves the objects selected | 0 to 2 | 2 |
| PICKFIRST | Commands use what was selected before them | 0 or 1 | 1 |
| PICKBOX | Size of the cursor pickbox | 0 to 50 | 4 |
| PICKDRAG | 1: dragging makes the rectangular window | 0 to 2 | 2 |
| PICKAUTO | 4: dragging in empty space makes the lasso (without 4, the rectangular window) | 0 to 7 | 5 |
| SELECTIONCYCLING | List of overlapping objects on click (0 turns it off; Ctrl+W toggles) | −2 to 2 | 0 |
| SELECTSIMILARMODE | What SELECTSIMILAR compares besides the type: 1 color, 2 layer, 4 linetype, 16 lineweight, 64 text style | 0 to 255 | 130 |
| TRIMEXTENDMODE | Mode of TRIM and EXTEND: 1 quick (every object is an edge); 0 standard (choose the edges) | 0 or 1 | 1 |
| EDGEMODE | Extended edges in TRIM and EXTEND (infinite line, circle of the arc) | 0 or 1 | 0 |
| SPLINETYPE | PEDIT's Spline: 5 quadratic, 6 cubic | 5 or 6 | 6 |
| SPLINESEGS | Straight segments per span in PEDIT's Spline | 1 to 200 | 8 |
| LTSCALE | Global linetype scale | Positive number | 1 |
| CELTSCALE | Linetype scale of new objects | Positive number | 1 |
| CELTYPE | Linetype of new objects | ByLayer, Continuous, a loaded one or one from the standard library (DASHED, HIDDEN, CENTER...; it loads into the drawing by itself) | ByLayer |
| PLINEGEN | The linetype runs along the whole new polyline (1) or restarts at each vertex (0) | 0 or 1 | 0 |
| LWDISPLAY | Lineweights appear on screen (the status bar button) | 0 or 1 | 0 |
| CELWEIGHT | Lineweight of new objects, in hundredths of a millimeter (in the drawing) | −1 (ByLayer) or 0, 5, 9 … 211 | −1 |
| LWDEFAULT | Lineweight of new layers, in hundredths of a millimeter (in the profile) | 0, 5, 9 … 211 | 25 |
| FILLETRAD | FILLET radius | Length | 0 |
| CHAMFERA / CHAMFERB | First and second CHAMFER distances | Length | 0 |
| CHAMFERC / CHAMFERD | Length and angle of CHAMFER by angle | Length / degrees | 0 |
| CHAMMODE | CHAMFER by distances (0) or by length and angle (1) | 0 or 1 | 0 |
| TRIMMODE | FILLET and CHAMFER trim the lines (1) or not (0) | 0 or 1 | 1 |
| OFFSETDIST | OFFSET distance (negative: Through) | Length | Through |
| OFFSETERASE | OFFSET erases the source | 0 or 1 | 0 |
| OFFSETLAYER | The offset goes to the current layer (1) or the source's layer (0) | 0 or 1 | 0 |
| OFFSETGAPTYPE | Outer corners of a polyline offset: 0 extends, 1 fillets, 2 chamfers | 0 to 2 | 0 |
| PLINEWID | Width of the new polyline | Length | 0 |
| PELLIPSE | ELLIPSE creates an ellipse (0) or a polyline (1) | 0 or 1 | 0 |
| SPLMETHOD | SPLINE starts by fit (0) or by control vertices (1) | 0 or 1 | 0 |
| SPLKNOTS | Spline knots: 0 chord, 1 square root, 2 uniform | 0 to 2 | 0 |
| SPLDEGREE | Degree of a spline by control vertices | 1 to 5 | 3 |
| ARRAYASSOCIATIVITY | ARRAY creates an associative array (a single object, editable with ARRAYEDIT) | 0 or 1 | 1 |
| DELOBJ | Commands that create from objects erase the source ones (REGION too) | 0 or 1 | 1 |
| GRIPS | Show grips on selection | 0 or 1 | 1 |
| GRIPWELD | BadBit CAD's own: dropping an end grip on the end of another object welds the two (see Welding by grip) | 0 or 1 | 1 |
| GRIPSIZE | Side of the grips, in points | 1 to 255 | 8 |
| APERTURE | Half width of the snap box, in points | 1 to 50 | 8 |
| ORTHOMODE | Ortho (F8) | 0 or 1 | 0 |
| DYNMODE | Dynamic input (F12); 0 turns it off | −3 to 3 | 3 |
| DYNPROMPT | Typed command and prompts next to the cursor (with F12 on); 0 only on the command line | 0 or 1 | 1 |
| QPMODE | Quick Properties | 0 or 1 | 1 |
| QPLOCATION | Where Quick Properties appear: 0 next to the cursor, 1 floating | 0 or 1 | 0 |
| CLAYER | Current layer | Layer name | 0 |
| TEXTSTYLE | Current text style (saved in the drawing) | Name of a text style in the drawing | Standard |
| DIMSTYLE | Current dimension style (saved in the drawing; only through SETVAR, since typed DIMSTYLE is the command) | Name of a dimension style in the drawing | Standard |
| DIMASSOC | How new dimensions are created: 2 associative (follow the object), 1 non-associative, 0 exploded into their parts | 0 to 2 | 2 |
| CANNOSCALE | Current annotation scale (saved in the drawing; also in the status bar list) | 1:1, 1:50, 1:100, 2:1... | 1:1 |
| ANNOAUTOSCALE | Positive: when CANNOSCALE changes, the new scale is added to all annotative objects; 0 or negative turns it off | −4 to 4 | −4 |
| ANNOALLVISIBLE | 1 shows all annotative objects; 0 only those that support the annotation scale: in the model, the current one (CANNOSCALE); in each layout viewport, its own scale (as in the plot). Saved in the drawing (also in DXF and DWG) | 0 or 1 | 1 |
| CECOLOR | Color of new objects | BYLAYER, 1 to 255 or r,g,b | BYLAYER |
| OBJECTISOLATIONMODE | Objects hidden by ISOLATEOBJECTS and HIDEOBJECTS: 0 only in this session; 1 saved in the .bbd and hidden when opening (in the profile; DXF and DWG do not carry them) | 0 or 1 | 0 |
Dimension variables
AutoCAD's dimension variables show the value of the current dimension style (with the overrides). Changing one of them does not change the style: it puts an override on the current style, and new dimensions are created with it (see Style overrides, in the Text and dimensions chapter). -DIMSTYLE Status lists all of them with their values; Save writes the overrides into a style. The overrides of the current style belong to the drawing, as in AutoCAD: they go into the DWG and DXF (the dimension variables of the header) and come back when the file is opened. Sizes are in drawing units; the defaults are those of Standard.
| Variable | What it controls | Values | Default |
|---|---|---|---|
| DIMTXT | Text height | Positive length | 0.25 |
| DIMTXSTY | Text style of the dimensions | Text style name | Standard |
| DIMASZ | Arrowhead size | Length | 0.25 |
| DIMBLK, DIMBLK1, DIMBLK2 | Both arrowheads, the first and the second | . or empty (closed filled), _OPEN, _ARCHTICK, _DOT, _NONE | Closed filled |
| DIMLDRBLK | Leader arrowhead (QLEADER, LEADER and DIMARC's leader) | The same names as DIMBLK | Closed filled |
| DIMEXO | Offset of the extension line from the origin | Length | 0.0625 |
| DIMEXE | Extension of the extension line beyond the dimension line | Length | 0.125 |
| DIMGAP | Gap between the text and the dimension line (and in the tolerance frame) | Length | 0.0625 |
| DIMDLI | Baseline spacing (DIMBASELINE, QDIM) | Length | 0.375 |
| DIMCEN | Center mark of radius and diameter | Length | 0.25 |
| DIMJOGANG | Angle of the DIMJOGGED jog, in degrees | Degrees | 45 |
| DIMSCALE | Overall scale: multiplies all sizes | Positive number | 1 |
| DIMLFAC | Measurement factor (100: meters dimensioned in centimeters) | Positive number | 1 |
| DIMLUNIT | Unit of linear dimensions: 1 scientific, 2 decimal, 3 engineering, 4 architectural, 5 fractional | 1 to 5 | 2 |
| DIMDEC | Decimal places (or the denominator of fractions) | 0 to 8 | 2 |
| DIMDSEP | Decimal separator | One character | , |
| DIMZIN | Zero suppression: 4 leading, 8 trailing (sum) | 0, 4, 8 or 12 | 0 |
| DIMPOST | Prefix and suffix: <> is the measurement (<> m gives 3,00 m) | Text | Empty |
| DIMAUNIT | Angle unit: 0 decimal degrees, 1 degrees, minutes and seconds, 2 gradians, 3 radians | 0 to 3 | 0 |
| DIMADEC | Decimal places of angles | 0 to 8 | 0 |
| DIMTAD | Text above the dimension line (1) or centered, with the line broken (0) | 0 or 1 | 1 |
| DIMTIH, DIMTOH | Text horizontal (inside and outside the extension lines); 0 aligned with the dimension line | 0 or 1 | 0 |
Parametric drawing
| Variable | What it controls | Values | Default |
|---|---|---|---|
| CCONSTRAINTFORM | Form of new dimensional constraints: 0 dynamic (on screen only), 1 annotational (prints) | 0 or 1 | 0 |
| CONSTRAINTBARDISPLAY | Show constraint bars | 0 or 1 | 1 |
| CONSTRAINTBARMODE | Types shown in the bars (sum: horizontal 1, vertical 2, perpendicular 4, parallel 8, tangent 16, smooth 32, coincident 64, concentric 128, collinear 256, symmetric 512, equal 1024, fix 2048) | 0 to 4095 | 4095 |
| CONSTRAINTINFER | Infer constraints when drawing and editing | 0 or 1 | 0 |
| CONSTRAINTNAMEFORMAT | Text of constraint dimensions: 0 name, 1 value, 2 name and expression | 0 to 2 | 2 |
| CONSTRAINTRELAX | Relax the constraints that prevent an edit (0: the edit does not happen) | 0 or 1 | 0 |
| DYNCONSTRAINTDISPLAY | Show dynamic constraints | 0 or 1 | 1 |
Object groups
| Variable | What it controls | Values | Default |
|---|---|---|---|
| PICKSTYLE | Group and associative hatch selection: 0 none, 1 a member brings the whole group, 2 an associative hatch brings its boundary, 3 both (kept in the profile; Ctrl+Shift+A turns groups on and off) | 0 to 3 | 1 |
Properties and text scale
| Variable | What it controls | Values | Default |
|---|---|---|---|
| SETBYLAYERMODE | Properties that SETBYLAYER changes to ByLayer (sum: 1 color, 2 linetype, 4 lineweight, 8 material, 16 plot style, 128 transparency; BadBit CAD changes the first three and keeps the others; kept in the profile) | 0 to 255 | 255 |
CECOLOR (the color of COLOR) also accepts BYBLOCK and the name of one of the first seven colors (red, yellow, green, cyan, blue, magenta, white), and goes into DXF and DWG with the true color.
Center marks and centerlines
All of them belong to the drawing (they go into the file, DXF and DWG) and apply only to new marks and lines.
| Variable | What it controls | Values | Default |
|---|---|---|---|
| CENTERCROSSSIZE | Size of each dash of the center mark cross | length, number with x (relative to the diameter) or ByLineType | 0.1x |
| CENTERCROSSGAP | Gap between the cross and the extensions | length, number with x or ByLineType | 0.05x |
| CENTEREXE | How far the extensions go past the circle or the ends of the lines | positive length | 0.35 m (metric AutoCAD's 3.5 in proportion to BadBit CAD's Standard) |
| CENTERLAYER | Layer of new marks and lines (created if it does not exist) | name, or . for the current one | . |
| CENTERLTYPE | Linetype of new marks and lines | name, . (the current one) or ByLayer | CENTER2 |
| CENTERLTSCALE | Linetype scale of new marks and lines | nonzero number | 1 |
| CENTERMARKEXE | Extensions on new center marks | 0 hidden, 1 visible | 1 |
User coordinate system (UCS)
Those of the drawing go into the file (.bbd, DXF and DWG); those of the profile stay with the user, as in the AutoCAD registry.
| Variable | What it controls | Values | Default |
|---|---|---|---|
| UCSNAME | Name of the current UCS (empty: unnamed). Read-only. | text | empty |
| UCSORG | Origin of the current UCS, in world coordinates. Read-only. | x,y,z | 0,0,0 |
| UCSXDIR, UCSYDIR | X and Y directions of the current UCS, in world coordinates. Read-only. | x,y,z | 1,0,0 and 0,1,0 |
| UCSBASE | Base UCS for orthographic UCSs (BadBit CAD does not use it: read-only). | text | empty |
| UCSICON | UCS icon (drawing): bit 1 on, bit 2 at the origin. | 0 to 3 | 3 |
| UCSVP | Each model viewport keeps its own UCS (drawing). | 0 or 1 | 1 |
| UCSFOLLOW | Update the view to plan when the UCS changes (drawing; no effect in plan, which is already the top view). | 0 or 1 | 0 |
| UCSAXISANG | Default angle of UCS X, Y and Z (profile). | 5, 10, 15, 18, 22.5, 30, 45, 90, 180 | 90 |
| UCSSELECTMODE | The UCS icon can be selected (profile). | 0 or 1 | 1 |
| UCSORTHO | Restore the orthographic UCS with the orthographic view (profile; no effect in 2D). | 0 or 1 | 1 |
| UCSVIEW | A new named view saves the current UCS (profile). | 0 or 1 | 1 |
Multilines
All three belong to the drawing (they go into the file, DXF and DWG) and apply to new multilines; MLINE's options also change them.
| Variable | What it controls | Values | Default |
|---|---|---|---|
| CMLJUST | Justification of new multilines | 0 Top, 1 Zero, 2 Bottom | 0 |
| CMLSCALE | Width scale of new multilines (negative reverses the order of the elements; 0 collapses them into one line) | number | 2 (metric AutoCAD's 20 in proportion to BadBit CAD's Standard) |
| CMLSTYLE | Style of new multilines | name of a loaded style | STANDARD |
LISP
| Variable | What it controls | Values | Default |
|---|---|---|---|
| SECURELOAD | Load .lsp files from outside the trusted folders (profile): 0 without asking, 1 asks, 2 only from trusted ones. | 0 to 2 | 1 |
| TRUSTEDPATHS | Trusted folders for .lsp files, separated by ; (profile; BadBit CAD's lisp folder always counts). | text | empty |
| CMDECHO | Echo of the commands of (command ...) (kept for routines; BadBit CAD always shows them in the history). | 0 or 1 | 1 |
| USERI1 to USERI5, USERR1 to USERR5, USERS1 to USERS5 | Free values for routines (integers, reals and texts; per session). | — | 0, 0.0 and empty |
Wipeout
| Variable | What it controls | Values | Default |
|---|---|---|---|
| WIPEOUTFRAME | Frame of wipeouts (saved in the drawing): 0 hidden (appears only in the selection highlight), 1 displayed and plotted, 2 displayed but not plotted. | 0 to 2 | 1 |
View and layouts (read only)
They show the current view, as in AutoCAD; SETVAR shows the value and does not change it (VIEWCTR = 210,148.5 (read only)), and ? also lists them.
| Variable | What it shows | Values |
|---|---|---|
| VIEWCTR | The view center: in model space, in drawing units; on paper, in mm; inside a layout viewport (MSPACE), the model point at its center. | x,y |
| VIEWSIZE | The view height, in the same units as VIEWCTR (inside a layout viewport, the height of the model it shows). | number |
| CVPORT | The current viewport: 1 on paper; inside a layout viewport, its number (2 onward); 2 in model space. | integer |
| CTAB | The tab on screen: the layout name, or Model. | text |