Skip to content
BadBit Documentation
Sign in Download the beta

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.

VariableWhat it controlsValuesDefault
CURSORSIZESize of the cursor crosshairs, in % of the screen1 to 1005
GRIDUNITGrid spacingPositive lengthFollows the unit
OSMODEObject snap modes (sum of the bits)0 to 163834133
POLARANGPolar increment, in degrees (in the profile)Greater than 0 up to 36090
POLARMODEPolar 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 Shift0 to 150
POLARADDANGAdditional polar angles, separated by semicolons (in the profile); . clearsUp to 10 angles from 0 to 360(empty)
PDMODEPoint symbol0–4, adding 32 and/or 640
PDSIZEPoint sizePositive (units), negative (% of the screen) or 0; comma or period as decimal separator0
FILEDIAFile dialogs: 1 opens the system dialog; 0 asks for the name on the command line0 or 11
INSUNITSDEFSOURCEUnit of an incoming unitless file (INSERT, XREF, or opened with FILEDIA 0), by the INSUNITS code0 to 246 (meters)
INSUNITSDEFTARGETUnit of the unitless drawing that receives an INSERT or XREF0 to 246 (meters)
SNAPUNITGrid snap spacing (F9)Positive lengthThat of the grid (GRIDUNIT)
TEXTSIZEHeight of the next TEXT and MTEXTPositive length0.25 m
SAVETIMEMinutes between automatic saves (0 turns it off)0 to 60010
LAYLOCKFADECTLFading of objects on locked layers, in % (in the profile); negative turns it off while keeping the value-90 to 9050
TEXTFILLTrueType letters filled (1) or outline only (0), on screen, in the plot and in PDF (in the profile)0 or 11
MIRRTEXTText in MIRROR: 0 stays readable; 1 mirrors the letters0 or 10
PICKADDPicks: 0 replace the selection (Shift adds); 1 add (Shift removes); 2 add and SELECT leaves the objects selected0 to 22
PICKFIRSTCommands use what was selected before them0 or 11
PICKBOXSize of the cursor pickbox0 to 504
PICKDRAG1: dragging makes the rectangular window0 to 22
PICKAUTO4: dragging in empty space makes the lasso (without 4, the rectangular window)0 to 75
SELECTIONCYCLINGList of overlapping objects on click (0 turns it off; Ctrl+W toggles)−2 to 20
SELECTSIMILARMODEWhat SELECTSIMILAR compares besides the type: 1 color, 2 layer, 4 linetype, 16 lineweight, 64 text style0 to 255130
TRIMEXTENDMODEMode of TRIM and EXTEND: 1 quick (every object is an edge); 0 standard (choose the edges)0 or 11
EDGEMODEExtended edges in TRIM and EXTEND (infinite line, circle of the arc)0 or 10
SPLINETYPEPEDIT's Spline: 5 quadratic, 6 cubic5 or 66
SPLINESEGSStraight segments per span in PEDIT's Spline1 to 2008
LTSCALEGlobal linetype scalePositive number1
CELTSCALELinetype scale of new objectsPositive number1
CELTYPELinetype of new objectsByLayer, Continuous, a loaded one or one from the standard library (DASHED, HIDDEN, CENTER...; it loads into the drawing by itself)ByLayer
PLINEGENThe linetype runs along the whole new polyline (1) or restarts at each vertex (0)0 or 10
LWDISPLAYLineweights appear on screen (the status bar button)0 or 10
CELWEIGHTLineweight of new objects, in hundredths of a millimeter (in the drawing)−1 (ByLayer) or 0, 5, 9 … 211−1
LWDEFAULTLineweight of new layers, in hundredths of a millimeter (in the profile)0, 5, 9 … 21125
FILLETRADFILLET radiusLength0
CHAMFERA / CHAMFERBFirst and second CHAMFER distancesLength0
CHAMFERC / CHAMFERDLength and angle of CHAMFER by angleLength / degrees0
CHAMMODECHAMFER by distances (0) or by length and angle (1)0 or 10
TRIMMODEFILLET and CHAMFER trim the lines (1) or not (0)0 or 11
OFFSETDISTOFFSET distance (negative: Through)LengthThrough
OFFSETERASEOFFSET erases the source0 or 10
OFFSETLAYERThe offset goes to the current layer (1) or the source's layer (0)0 or 10
OFFSETGAPTYPEOuter corners of a polyline offset: 0 extends, 1 fillets, 2 chamfers0 to 20
PLINEWIDWidth of the new polylineLength0
PELLIPSEELLIPSE creates an ellipse (0) or a polyline (1)0 or 10
SPLMETHODSPLINE starts by fit (0) or by control vertices (1)0 or 10
SPLKNOTSSpline knots: 0 chord, 1 square root, 2 uniform0 to 20
SPLDEGREEDegree of a spline by control vertices1 to 53
ARRAYASSOCIATIVITYARRAY creates an associative array (a single object, editable with ARRAYEDIT)0 or 11
DELOBJCommands that create from objects erase the source ones (REGION too)0 or 11
GRIPSShow grips on selection0 or 11
GRIPWELDBadBit CAD's own: dropping an end grip on the end of another object welds the two (see Welding by grip)0 or 11
GRIPSIZESide of the grips, in points1 to 2558
APERTUREHalf width of the snap box, in points1 to 508
ORTHOMODEOrtho (F8)0 or 10
DYNMODEDynamic input (F12); 0 turns it off−3 to 33
DYNPROMPTTyped command and prompts next to the cursor (with F12 on); 0 only on the command line0 or 11
QPMODEQuick Properties0 or 11
QPLOCATIONWhere Quick Properties appear: 0 next to the cursor, 1 floating0 or 10
CLAYERCurrent layerLayer name0
TEXTSTYLECurrent text style (saved in the drawing)Name of a text style in the drawingStandard
DIMSTYLECurrent dimension style (saved in the drawing; only through SETVAR, since typed DIMSTYLE is the command)Name of a dimension style in the drawingStandard
DIMASSOCHow new dimensions are created: 2 associative (follow the object), 1 non-associative, 0 exploded into their parts0 to 22
CANNOSCALECurrent annotation scale (saved in the drawing; also in the status bar list)1:1, 1:50, 1:100, 2:1...1:1
ANNOAUTOSCALEPositive: when CANNOSCALE changes, the new scale is added to all annotative objects; 0 or negative turns it off−4 to 4−4
ANNOALLVISIBLE1 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 11
CECOLORColor of new objectsBYLAYER, 1 to 255 or r,g,bBYLAYER
OBJECTISOLATIONMODEObjects 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 10

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.

VariableWhat it controlsValuesDefault
DIMTXTText heightPositive length0.25
DIMTXSTYText style of the dimensionsText style nameStandard
DIMASZArrowhead sizeLength0.25
DIMBLK, DIMBLK1, DIMBLK2Both arrowheads, the first and the second. or empty (closed filled), _OPEN, _ARCHTICK, _DOT, _NONEClosed filled
DIMLDRBLKLeader arrowhead (QLEADER, LEADER and DIMARC's leader)The same names as DIMBLKClosed filled
DIMEXOOffset of the extension line from the originLength0.0625
DIMEXEExtension of the extension line beyond the dimension lineLength0.125
DIMGAPGap between the text and the dimension line (and in the tolerance frame)Length0.0625
DIMDLIBaseline spacing (DIMBASELINE, QDIM)Length0.375
DIMCENCenter mark of radius and diameterLength0.25
DIMJOGANGAngle of the DIMJOGGED jog, in degreesDegrees45
DIMSCALEOverall scale: multiplies all sizesPositive number1
DIMLFACMeasurement factor (100: meters dimensioned in centimeters)Positive number1
DIMLUNITUnit of linear dimensions: 1 scientific, 2 decimal, 3 engineering, 4 architectural, 5 fractional1 to 52
DIMDECDecimal places (or the denominator of fractions)0 to 82
DIMDSEPDecimal separatorOne character,
DIMZINZero suppression: 4 leading, 8 trailing (sum)0, 4, 8 or 120
DIMPOSTPrefix and suffix: <> is the measurement (<> m gives 3,00 m)TextEmpty
DIMAUNITAngle unit: 0 decimal degrees, 1 degrees, minutes and seconds, 2 gradians, 3 radians0 to 30
DIMADECDecimal places of angles0 to 80
DIMTADText above the dimension line (1) or centered, with the line broken (0)0 or 11
DIMTIH, DIMTOHText horizontal (inside and outside the extension lines); 0 aligned with the dimension line0 or 10

Parametric drawing

VariableWhat it controlsValuesDefault
CCONSTRAINTFORMForm of new dimensional constraints: 0 dynamic (on screen only), 1 annotational (prints)0 or 10
CONSTRAINTBARDISPLAYShow constraint bars0 or 11
CONSTRAINTBARMODETypes 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 40954095
CONSTRAINTINFERInfer constraints when drawing and editing0 or 10
CONSTRAINTNAMEFORMATText of constraint dimensions: 0 name, 1 value, 2 name and expression0 to 22
CONSTRAINTRELAXRelax the constraints that prevent an edit (0: the edit does not happen)0 or 10
DYNCONSTRAINTDISPLAYShow dynamic constraints0 or 11

Object groups

VariableWhat it controlsValuesDefault
PICKSTYLEGroup 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 31

Properties and text scale

VariableWhat it controlsValuesDefault
SETBYLAYERMODEProperties 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 255255

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.

VariableWhat it controlsValuesDefault
CENTERCROSSSIZESize of each dash of the center mark crosslength, number with x (relative to the diameter) or ByLineType0.1x
CENTERCROSSGAPGap between the cross and the extensionslength, number with x or ByLineType0.05x
CENTEREXEHow far the extensions go past the circle or the ends of the linespositive length0.35 m (metric AutoCAD's 3.5 in proportion to BadBit CAD's Standard)
CENTERLAYERLayer of new marks and lines (created if it does not exist)name, or . for the current one.
CENTERLTYPELinetype of new marks and linesname, . (the current one) or ByLayerCENTER2
CENTERLTSCALELinetype scale of new marks and linesnonzero number1
CENTERMARKEXEExtensions on new center marks0 hidden, 1 visible1

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.

VariableWhat it controlsValuesDefault
UCSNAMEName of the current UCS (empty: unnamed). Read-only.textempty
UCSORGOrigin of the current UCS, in world coordinates. Read-only.x,y,z0,0,0
UCSXDIR, UCSYDIRX and Y directions of the current UCS, in world coordinates. Read-only.x,y,z1,0,0 and 0,1,0
UCSBASEBase UCS for orthographic UCSs (BadBit CAD does not use it: read-only).textempty
UCSICONUCS icon (drawing): bit 1 on, bit 2 at the origin.0 to 33
UCSVPEach model viewport keeps its own UCS (drawing).0 or 11
UCSFOLLOWUpdate the view to plan when the UCS changes (drawing; no effect in plan, which is already the top view).0 or 10
UCSAXISANGDefault angle of UCS X, Y and Z (profile).5, 10, 15, 18, 22.5, 30, 45, 90, 18090
UCSSELECTMODEThe UCS icon can be selected (profile).0 or 11
UCSORTHORestore the orthographic UCS with the orthographic view (profile; no effect in 2D).0 or 11
UCSVIEWA new named view saves the current UCS (profile).0 or 11

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.

VariableWhat it controlsValuesDefault
CMLJUSTJustification of new multilines0 Top, 1 Zero, 2 Bottom0
CMLSCALEWidth scale of new multilines (negative reverses the order of the elements; 0 collapses them into one line)number2 (metric AutoCAD's 20 in proportion to BadBit CAD's Standard)
CMLSTYLEStyle of new multilinesname of a loaded styleSTANDARD

LISP

VariableWhat it controlsValuesDefault
SECURELOADLoad .lsp files from outside the trusted folders (profile): 0 without asking, 1 asks, 2 only from trusted ones.0 to 21
TRUSTEDPATHSTrusted folders for .lsp files, separated by ; (profile; BadBit CAD's lisp folder always counts).textempty
CMDECHOEcho of the commands of (command ...) (kept for routines; BadBit CAD always shows them in the history).0 or 11
USERI1 to USERI5, USERR1 to USERR5, USERS1 to USERS5Free values for routines (integers, reals and texts; per session).—0, 0.0 and empty

Wipeout

VariableWhat it controlsValuesDefault
WIPEOUTFRAMEFrame 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 21

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.

VariableWhat it showsValues
VIEWCTRThe 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
VIEWSIZEThe view height, in the same units as VIEWCTR (inside a layout viewport, the height of the model it shows).number
CVPORTThe current viewport: 1 on paper; inside a layout viewport, its number (2 onward); 2 in model space.integer
CTABThe tab on screen: the layout name, or Model.text
Search the documentation