Skip to content
BadBit Documentation
Sign in Download the beta

Layers

Layers organize the drawing as in AutoCAD. Each object belongs to a layer. By default, the object's color, linetype and lineweight come from the layer (ByLayer). Every drawing starts with layer 0, which cannot be renamed or deleted. New objects go on the current layer.

Layer Properties Manager (LAYER, LA)

Layer Properties Manager

The LA command (or the Layer Properties button in the Layers panel of the ribbon) opens the manager. It is a palette: it stays open while you draw, can be dragged by its background and resized by its edges.

ButtonShortcutWhat it does
+ New LayerAlt+NCreates "Layer1", "Layer2"... with the properties of the selected layer, with the name ready to be typed.
Trash can: Delete LayerAlt+DDeletes the selected layer.
✓ Set CurrentAlt+CThe selected layer starts receiving new objects.

In the table:

  • Status: the green check mark indicates the current layer. Double-click the status to make a layer current.
  • Name: double-click (or select the row and press F2) to rename. Enter confirms and Esc cancels.
  • On (light bulb): when off, the layer disappears from the screen and its objects cannot be selected or snapped to.
  • Freeze (sun/snowflake): when frozen, the layer disappears like an off layer and is also left out of view calculations: zoom extents (and the Extents plot area) does not count its objects; those on a layer that is merely off do count, as in AutoCAD.

Blocks follow the AutoCAD rule: a block object on layer 0 takes the reference's layer (color, linetype, lineweight and also visibility), so it disappears when the reference's layer is turned off or frozen, and does not disappear when "0" is frozen; a block object on its own layer disappears when that layer is turned off or frozen, even with the reference's layer on. Freezing the reference's layer hides the whole block; turning it off hides only what is on "0". Loose objects on layer "0" disappear when it is frozen. What is not displayed also cannot be selected, snapped to or plotted.

  • Lock (padlock): objects are displayed and can be snapped to, but cannot be moved, copied or erased. The command says how many were left out.
  • Plot (printer): sets whether the layer is plotted.
  • Color: opens the Select Color dialog box.
  • Linetype: the list of linetypes loaded in the drawing (see Linetypes, below). The last item, Load…, opens the dialog box for loading linetypes (from the BadBit CAD library or from a .lin file), like AutoCAD's Load button; the first linetype checked is applied to the layer right away.
  • Lineweight: list with AutoCAD's standard values, from 0.00 to 2.11 mm.

The footer shows the total number of layers and, when the request cannot be carried out, the reason.

Rules (the same as AutoCAD's)

RequestResult
Rename or delete layer 0Not possible.
Delete the current layerNot possible: make another one current first.
Delete a layer with objectsNot possible: move or erase the objects first.
Freeze the current layerNot possible. Turning it off is possible.
Make a frozen layer currentNot possible.
Duplicate name (case-insensitive) or empty nameNot accepted.
Name with < > / \ " : ; ? * | = ' or a backquoteNot accepted.

Every layer change can be undone with U (Ctrl+Z). If undo deletes or freezes the current layer, the current layer goes back to 0.

Select Color

Select Color dialog box

This is AutoCAD's index color tab (ACI). At the top are the 240 palette colors: each column is a hue, with the full variations at the top and the soft ones at the bottom. Below them are the nine standard colors (1 red, 2 yellow, 3 green, 4 cyan, 5 blue, 6 magenta, 7 white/black, 8 and 9 grays) and the six grays from 250 to 255. Resting the mouse over a color shows its index and RGB value.

To choose, click the color and OK, double-click the color, or type the number in the Color field. Color 7 appears white on a dark background and black on a light background, as in AutoCAD.

Ribbon layer list

Layer list in the Layers panel

In the Layers panel of the Home tab, the list shows the current layer. With objects selected, it shows their layer, or stays blank if they are on different layers. When you open the list:

  • Clicking the name, with nothing selected, makes the layer current.
  • Clicking the name with objects selected moves the objects to that layer. The command line reports how many changed. Objects on a locked layer are left out, with a message.
  • The light bulb, sun and padlock icons toggle the states right in the list, without opening the manager.

Esc or a click outside closes the list.

Object properties

Properties palette (PROPERTIES, Ctrl+1)

Properties palette with a circle selected

Ctrl+1 opens and closes the palette. The PR command (or PROPS, CH, MO) and the Properties button on the ribbon also open the palette. Like the layer manager, it stays open while you draw and follows the selection. At the top are the object type and how many are selected.

General, for any object:

PropertyOptions
ColorByLayer, the seven named colors, the explicit color in use and Select Color…, which opens the index color dialog box.
LayerThe drawing's layers. Moves the objects to the chosen layer.
LinetypeByLayer, Continuous or one of the loaded linetypes; Load… loads others and gives the first one to the objects.
Linetype scaleThe object's own scale (multiplies the global one, LTSCALE).
LineweightByLayer or one of the standard values (0.00 to 2.11 mm).

The lineweight can also be changed in the Lineweight list of the Properties panel on the ribbon: with objects selected, it shows theirs ("mixed" if they differ) and changes theirs; with no selection, it shows and changes that of new objects (CELWEIGHT), as in AutoCAD.

With nothing selected, the palette shows what applies to new objects. In that case, changing Layer changes the current layer, and Linetype and Linetype scale change those of new objects (CELTYPE and CELTSCALE).

Geometry, depending on the type:

ObjectEditable fieldsRead-only
LineStart X/Y, End X/YDelta X/Y, Length, Angle
CircleCenter X/Y, Radius, Diameter, Circumference, Area—
ArcCenter X/Y, Radius, Start angle, End angleTotal angle, Arc length
PolylineVertex (chooses which), Vertex X/Y, Closed, Linetype generationLength, Area (if closed)
PointPosition X/Y—

The values follow the project's units and accept another unit when typed (250 cm, 45°). The value is applied when you press Enter or leave the field, and Esc cancels. As in AutoCAD, changing a circle's diameter, circumference or area changes its radius. Changing an arc's start angle keeps the end angle, and vice versa.

Lineweight on screen (LWDISPLAY, LWEIGHT)

As in AutoCAD, lineweights are not displayed on screen until they are turned on: the Show/hide lineweight button on the status bar (or the LWDISPLAY variable) turns them on and off. When on, each line is drawn with its lineweight: its own, or, for ByLayer, the layer's (a new layer has 0.25 mm). In model space the lineweight is measured in screen pixels and does not change with zoom: 0.25 mm (the default) or less is drawn thin, one pixel wide, and above that the width grows in whole pixels (0.50 mm is twice as wide as 0.25 mm). Lineweight 0.00 is always drawn thin, through the same fast path as always, even with millions of lines.

Lineweights on screen
LWDISPLAY on: 1.00 mm walls, 0.50 mm partitions and the rest ByLayer (0.25 mm, thin).

The LWEIGHT command (alias LW, or LINEWEIGHT; or right-click the button on the status bar) opens Lineweight settings: the list chooses the lineweight of new objects (CELWEIGHT: ByLayer or a value), Display lineweight is LWDISPLAY, Default for new layers is LWDEFAULT (the lineweight the layer manager gives a new layer when no other layer is selected to copy from) and Adjust display scale makes all lineweights on screen heavier or lighter (from 0.25 to 4 times), with a sample beside it.

Lineweight settings
The LWEIGHT dialog box.

The display scale and LWDEFAULT are stored in the user profile (as in AutoCAD's registry); LWDISPLAY and CELWEIGHT belong to the open drawing. Difference from AutoCAD: the "Default" value in AutoCAD's lineweight list (which follows LWDEFAULT) does not exist in BadBit CAD yet; a new layer receives the LWDEFAULT value at the moment it is created.

Linetypes (LINETYPE, alias LT)

As in AutoCAD, a new drawing has only the continuous linetype (Continuous); the others are loaded before use. The LINETYPE command (or LT) opens the manager, with each loaded linetype, its sample and its description:

  • Load...: opens the BadBit CAD library list (dashed, hidden, center, phantom, dot, dash-dot, border, divide, each also at half and double size) to check the ones to bring in. .lin file... loads the simple linetypes from an AutoCAD .lin file (those with text or shapes in them are left out).
  • Current: the selected linetype becomes the one for new objects (CELTYPE). ByLayer returns to the layer's.
  • Delete: removes the linetype from the drawing, if no object, no layer and CELTYPE use it.
  • Global scale factor (LTSCALE) and Current object scale (CELTSCALE): the dash size is the pattern's times the global scale times the object's scale.
Linetype Manager
The manager with loaded linetypes and their samples.

Each object's linetype is chosen in the Properties palette (or stays ByLayer, and the layer's applies, chosen in the layer manager). Dashes appear on screen with and without the GPU, identically. The library patterns are in meters, designed for floor plans; the global scale adjusts them to the drawing's size. On a segment too short for one repetition of the pattern, or with dashes too small to see, the line is drawn continuous, as in AutoCAD.

Linetypes in the drawing
Walls dashed by layer and a center line axis.

On polylines, the pattern restarts at each vertex; with Linetype generation on (the PLINEGEN variable for new ones, PEDIT's L option or the Properties palette), it runs along the whole polyline, without breaking at the corners.

Quick Properties (QP, Ctrl+Shift+P)

With Quick Properties on, selecting objects (with no active command) opens a small window next to the cursor with the essentials of the selection, as in AutoCAD: color, layer and linetype, and the measurements for the type (the length of a line; the center and radius of a circle and an arc; the radii of an ellipse; the base point of a construction line...). The values are edited right there, as in the full palette, and each change is an undo step.

The small window can be dragged and closed (it comes back at the next selection). It does not appear with the Properties palette open or during a command. It is turned on and off with the Quick Properties button on the status bar or with Ctrl+Shift+P; it is on by default.

Quick Properties
A circle selected: the small window with color, layer, linetype, center and radius.

Where the small window appears (QPLOCATION)

The QPLOCATION variable chooses, as in AutoCAD: 0 (default) the small window moves next to the cursor at each new selection; 1 it is floating: it appears next to the cursor only the first time and then stays where you left it. QUICKPROPERTIES shows the Quick Properties of the selection right away, even with QPMODE 0.

Customizing the rows

The Customize… button, at the bottom of the small window, opens the Customize User Interface (CUI): Quick Properties dialog box, where you choose the rows shown for each object type (the Object types list and, below it, the checked Properties), like the Quick Properties part of AutoCAD's CUI. It starts on the type of the selection; what you check applies immediately and is stored in the profile.

The Quick Properties button is removed from and returned to the status bar through the Customize the status bar menu (the last button, on the right), where it is checked by default.

Customize the status bar menu
The menu for customizing the status bar: Quick Properties and Memory per tab.

Customizing Quick Properties (CUI)

CUI opens the Quick Properties part of AutoCAD-style customization: choose the object type and check the properties shown in the small window (the list is that of the full palette for an object of that type). Restore the type's default returns to AutoCAD's choice. Customized types appear with *; the choice is stored in the profile (it goes along when the profile is exported and imported).

Customizing Quick Properties
CUI: the circle's properties in Quick Properties (the default: color, layer, linetype, center and radius).

Multiple objects

Two lines selected: different values appear as "mixed"

With several objects of the same type, fields with different values show mixed. A value typed there applies to all of them, in a single undo step. With different types (for example, lines and circles), the top shows All and only the General group appears.

Objects on a locked layer are left out of the change, with a message. Meaningless values, such as a zero radius, are not accepted: the reason appears at the bottom of the palette and nothing changes. Each change in the palette is undone with U (Ctrl+Z).

Layer tools

AutoCAD's layer tools (in the Layers panel of the ribbon, Home tab, expanded with the small arrow below the title, or typed). The prompts, the options (with AutoCAD's English letters in parentheses) and the refusals are AutoCAD's; each one is a single undo step (U).

CommandWhat it does
LAYISOIsolates the layers of the chosen objects (before or after the command). The others are locked and faded (the default) or turned off, through the Settings option (S): Off (O), with Vpfreeze (V, freezes only in the layout viewport) or Off (O) in the viewport; Lock and fade (L), with the fade value (0 to 90). The current layer becomes one of the isolated ones.
LAYUNISORestores what the last LAYISO changed, except what you changed afterwards (as in AutoCAD: a layer you unlocked by hand stays unlocked). Works after saving and reopening.
LAYOFFClick an object: its layer is turned off; repeats until Enter. Undo (U) restores the last one; Settings (S): Viewports (V: Vpfreeze or Off inside a layout viewport) and Block selection (B: Block, the reference's layer; Entity, the layer of the object inside the block; None). On the current layer, it asks first.
LAYONTurns all layers on.
LAYFRZLike LAYOFF, freezing. The current layer is not frozen.
LAYTHWThaws all layers.
LAYLCK and LAYULKLock and unlock the layer of the clicked object.
LAYCURMoves the chosen objects to the current layer.
LAYMCHMoves the chosen objects to the layer of a clicked object, or by Name (N).
COPYTOLAYERCopies the chosen objects to the layer of a clicked object (or by Name, N, the default); then asks for the base point and the second point (or the Displacement, D) to move the copies; eXit (X) leaves them in place.
LAYMRGMerges layers into one: click objects on the layers to merge (or Type-it, T, the name; ? lists), Enter, and the target layer. After the warning (Yes, Y), the objects in all spaces, block items and attributes move to the target layer and the others are removed from the drawing.
LAYDELDeletes layers with their objects (also inside blocks), after the warning. Type-it (T) the name, Undo (U) the last one chosen.

AutoCAD's refusals: layer 0 and Defpoints cannot be deleted or merged into another; the current layer cannot be deleted (in LAYMRG it can: the target becomes current); the layers of an external reference (file|layer) cannot either.

Faded locked layers (LAYLOCKFADECTL)

Objects on locked layers appear faded, as in AutoCAD: the LAYLOCKFADECTL variable goes from 0 to 90 (% of fading; the default is 50). A negative value turns fading off while keeping the value (LAYISO with Lock and fade turns it on again). It is stored in the profile.

LAYISO with Lock and fade
LAYISO on the wall: the other layers locked and faded (LAYLOCKFADECTL 50).

Walking through layers (LAYWALK)

The LayerWalk dialog box lists the drawing's layers; only the chosen ones are displayed in the drawing (the drawing does not change while the dialog box is open). A click chooses one; Ctrl+click adds or removes; Shift+click chooses a range. A double-click holds the layer (a * in front): it is always displayed. Filter shows only the names that match the pattern (* and ?; several separated by commas). Select Objects hides the dialog box and chooses the layers of the objects you select. Purge deletes the chosen ones that have no objects at all.

With Restore on exit checked (the default), closing the dialog box leaves the drawing as it was; unchecked, the layers that were displayed stay on and the others off (one undo step).

LAYWALK
LayerWalk with the PAREDE layer chosen: only it is displayed.

Layer Translator (LAYTRANS)

Replaces the drawing's layers with those of an office standard. On the left, Translate From: the drawing's layers (those with no objects marked ○); Select chooses by name pattern. On the right, Translate To: Load... reads the layers of a DWG, DWT, DWS, DXF or .bbd (in the background) and New... creates one (name, color and linetype). Map links the chosen ones on the left to the chosen one on the right; Map same, those with the same name. In the Layer Translation Mappings list, Edit... changes the target layer's properties, Remove removes the mapping and Save... writes a .bbd with the target layers and the mappings (Load on that file brings the mappings back).

Settings...: force object color and linetype to ByLayer, translate objects inside blocks, write the transaction log (drawing.log, next to the drawing) and show the contents of the layers chosen on the left. Translate applies everything in one undo step: the target layers are created (or keep the file's properties), the objects move to them and the source layers are removed from the drawing.

LAYTRANS
The Layer Translator: PAR and ALV mapped to A-PAREDE, loaded from a standard.

Layer states (LAYERSTATE, LAS)

A layer state is a snapshot of the settings of all layers (on, frozen, locked, plot, color, linetype, lineweight, transparency, plot style, frozen in new viewport) and of the current layer, saved with a name in the drawing, so you can go back to it later, as in AutoCAD. The states go in the .bbd and in DWG/DXF (where AutoCAD stores them: a state saved in BadBit CAD appears in AutoCAD's Layer States Manager, and vice versa).

LAYERSTATE (alias LAS, or the Layer States button in the layer manager and in the expanded Layers panel) opens the Layer States Manager: the list of states (name, whether the layers currently match the state, and the description) and the buttons:

ButtonWhat it does
New…Saves the current layers as a new state (name and description; if the name already exists, it asks before replacing). It is the same as the LAYERSTATESAVE command.
SaveReplaces what is stored in the chosen state with the current layers, with the properties to restore checked below.
Edit…Opens the state: the stored layers, with on, frozen, locked, plot, color, linetype and lineweight for each; removes layers from the state or adds the missing drawing layers.
Rename and DeleteRename (the name becomes editable in the list; Enter confirms) and delete the state.
Import…Brings in states from a .las or from another drawing (DWG, DWS, DWT, DXF or .bbd, read in the background): choose the states in the list; those with the same name are only replaced with Replace states with the same name. The state's layers that the drawing does not have are created (with the Continuous linetype if the drawing does not have theirs).
Export…Writes the chosen state to a .las.
RestoreApplies the chosen state (also by double-clicking in the list) and makes current the layer that was current when it was saved.

Restore Options: Turn Off Layers Not Found in Layer State turns off the layers created after the state (so that the drawing is as it was). In Layer Properties to Restore (click the title to expand) you check what comes back: only what is checked changes (Select All and Clear All help). Visibility in Current VP applies only with an active layout viewport: the layers that are off or frozen in the state are frozen only in that viewport, and the others stay on and thawed. Transparency, plot style and new viewport freeze are stored in the state and go to and come back from the file, but BadBit CAD layers do not have these properties yet: when checked, they change nothing.

In the Layers panel of the ribbon, below the layer list, the state selector shows the state that matches the current layers (or Unsaved Layer State); choosing a state restores it immediately; New Layer State… and Manage Layer States… open the dialog boxes. Each change to the states and each Restore is a single undo step (U).

Layer States Manager
The Layer States Manager with two states; "No furniture" restores only on and frozen.

The .las is AutoCAD's layer states file. Autodesk does not publish the format: BadBit CAD writes the same codes AutoCAD uses in DWG, with the names of the layers and linetypes (the specification is in docs/formato/, section 12.10).

Layer of the current object (LAYMCUR)

LAYMCUR makes the layer of the clicked object current (it asks "Select object whose layer will become current:"). With an object already chosen before the command, its layer is used, without asking. A frozen layer cannot be current.

Previous layer (LAYERP, LAYERPMODE)

LAYERP undoes the last change to layer settings, one at a time: color, linetype, lineweight, on, frozen, locked, plot, the current layer — made in the manager, in the ribbon list, with the layer tools or by restoring a state. Objects do not change (for them, use U). As in AutoCAD, a renamed layer goes back to its previous properties but keeps the new name, and a deleted or created layer neither comes back nor goes away. LAYERP itself is undone with U.

LAYERPMODE turns tracking on and off (it asks ON (ON) or OFF (OFF)). When off, LAYERP says that it is not tracking changes; turning it off forgets what was stored. Tracking belongs to the session and starts on for each drawing opened.

Color, ByLayer and names

Color of new objects (COLOR, COL)

COLOR (aliases COL, COLOUR and DDCOLOR) opens the Select Color dialog box, the same as in the text editor, with AutoCAD's three tabs: Index Color (the grid of the 255 colors and the ByLayer and ByBlock buttons), True Color (RGB or HSL, with the "R,G,B" field) and Color Books (BadBit CAD's own book, BADBIT TONS; no third-party books). The chosen color applies to the objects you create from now on (the CECOLOR variable); existing ones do not change (for them, use the Properties palette).

-COLOR (-COL, -COLOUR) does the same from the command line: "Enter default object color [Truecolor/COlorbook] <BYLAYER>:". You can type BYLAYER, BYBLOCK, an index from 1 to 255, the name of one of the first seven colors (red, yellow, green, cyan, blue, magenta, white; also in Portuguese, such as azul) or r,g,b. T asks "Red, Green, Blue:"; CO asks for the book name (BADBIT TONS) and the color name. Enter keeps the current color. The current color goes in DXF and DWG ($CECOLOR, with the true color in group 420), as in AutoCAD.

Changing to ByLayer (SETBYLAYER)

SETBYLAYER shows the active properties ("Current active settings: Color Linetype Lineweight…") and asks "Select objects or [Settings]:". S opens the SetByLayer Settings dialog box, with the Color, Linetype, Lineweight, Material, Plot Style and Transparency check boxes (the SETBYLAYERMODE variable, in the profile). With the objects chosen (or chosen before the command), AutoCAD's two prompts follow:

  • Change ByBlock to ByLayer? [Yes/No] <Yes>: with No, properties that are ByBlock stay as they are.
  • Include blocks? [Yes/No] <Yes>: with Yes, the objects inside the definitions of the chosen blocks (and of the blocks nested in them) also change to ByLayer, and all references of those blocks follow; the attributes of the chosen references also change.

BadBit CAD changes the color, linetype and lineweight; material, plot style and transparency are kept in SETBYLAYERMODE for when objects have these properties. Objects on a locked layer are left out (with a message). Everything is a single undo step (U).

Renaming named objects (RENAME, REN)

RENAME (alias REN) opens the Rename dialog box: on the left, the Named Objects (Blocks, Dimension styles, Layers, Layouts, Linetypes, Multileader styles, Table styles, Text styles, UCSs, Views and Viewport configurations); on the right, the Items of the chosen type. Click an item: its name goes to Old Name and to the field next to Rename To:. Change the name and click Rename To: (or OK, which renames and closes).

Rename dialog box
The Rename dialog box with the PAREDE layer chosen, becoming ARQ-PAREDE.

Everything that refers to the object by name changes along with it: the block's references (in the drawing and inside other blocks), block items and attributes on the layer, layers and objects with the linetype (and the current linetype), texts, dimensions, multileaders, tables and styles that use the style. Old Name accepts the wildcards * and ? and the new name repeats them in place of what matched: A-* to ARQ-* renames A-PAREDE and A-PORTA to ARQ-PAREDE and ARQ-PORTA, in one step. These do not change (and do not appear in the list), as in AutoCAD: layer 0 and Defpoints, the Continuous, ByLayer and ByBlock linetypes, the Standard styles, anonymous blocks and names dependent on an external reference (file|name). The new name cannot be empty, be longer than 255 characters or contain < > / \ " : ; ? * | , = ' or the backquote; a duplicate name (case-insensitive) is rejected with a message. Each rename is a single undo step.

-RENAME (-REN) asks on the command line: "Enter object type to rename [Block/Dimstyle/LAyer/LType/multileadeRstyle/textStyle/Tablestyle/Ucs/VIew/VPort]:", then the old name and the new one (with the same wildcards). Material and plot style do not exist in BadBit CAD yet (-RENAME says so). Renaming a layer in the manager (F2 or double-clicking the name) uses the same renamer, including block items.

Search the documentation