| Commands | CAPCAD_LAYER_ASSISTANT and CAPCAD_LAYER_ASSISTANT_GENERAL (Drawing Standards) · CAPCAD_LAYER_MANAGER (Layer Tools) · CAPCAD_LAYER_UNLOCK_ALL (unlock everything) |
| Shortcuts | none. The LU in acad.pgp is the CAD's own LAYULK, not this command |
| Ribbon | CAPCAD_LAYER_ASSISTANT: CapCad tab › Manage panel › Layer Assistant. CAPCAD_LAYER_ASSISTANT_GENERAL: Road panel › Layers Gerais. CAPCAD_LAYER_MANAGER and CAPCAD_LAYER_UNLOCK_ALL: CAD Utilities panel › Draw & Modify split button › Layer Tools and Unlock all layers |
| Category | Manage: style (the two assistants) |
| Forms | DrawingStandardsForm, Drawing Standards (modeless, resizable, one Layers tab) · LayerToolsForm, Layer Tools (modeless, three tabs) |
| Hosts | AutoCAD, BricsCAD, GstarCAD, ZWCAD and ARES Commander (all four commands) |
CapCad's layer catalogue is too large to memorise. These commands show it already resolved by the project's style, and create in the drawing only what you choose. Instead of typing layer names and hoping the colour is right, you read the finished list and click.
- The list is the truth of the moment. Each row shows the internal role and, beside it, the name, colour, linetype and plot flag the active style resolved for it.
- Listing does not touch the drawing. The read is done in "do not create" mode: nothing is written until you press a create button.
- You decide whether it overwrites. Redefine layers if different separates "create if missing" from "create and reapply colour, linetype and plot flag": the difference between respecting and redoing what is already in the drawing.
- From the list straight onto the entities. Apply to entity creates the layer, then moves the entities you pick onto it, with the width and linetype scale the style gives that layer.
- Bulk conversion, in text. A block of
old=newlines (or two columns pasted from a spreadsheet) relabels the whole drawing, and the new layer can inherit the old one's look. - Heavy cleaning in one click. Every layer that is off or frozen goes, with everything drawn on it, in model space, in the layouts and inside block definitions.
Two windows, different jobs
Drawing Standards is the catalogue's shop window: it shows the layer roles and creates the ones you want, with the properties the active style dictated. It is the window for starting a drawing to the right standard.
Layer Tools is the cleaning: it converts layers in bulk, deletes hidden layers and copies a layer name. It is the window for fixing a drawing that already exists, including one that came from outside.
Neither depends on an alignment or on an active project; both depend on the style, because it is the style that resolves the names and the colours.
Drawing Standards
CAPCAD_LAYER_ASSISTANT opens the wide window listing the style's own layers; CAPCAD_LAYER_ASSISTANT_GENERAL opens the same window narrow, listing the style's layers and the general ones. There is one window, modeless and single: running the other command while it is open sets the width and the category boxes again and brings it to the front.
| Command | Width | Categories ticked on opening | What shows |
|---|---|---|---|
CAPCAD_LAYER_ASSISTANT |
wide | Do estilo | Every column, both create buttons, both option boxes and the Style in use label |
CAPCAD_LAYER_ASSISTANT_GENERAL |
narrow | Do estilo and Gerais | Only the CapCad variable column; the create buttons are hidden |
The → / ← button (11) switches between the two widths at any time, so nothing is out of reach. The window can also be stretched or maximised: the list grows with it.
Controls
| # | Control | What it does |
|---|---|---|
| 1 | Filter | Free text. The list rebuilds on every keystroke and shows the rows where the text appears in the variable, in the CAD layer name or in the description, case-insensitively. Empty shows everything |
| 2 | The list | One row per layer role, from the categories ticked in 12 to 15. Multiple selection. Double-clicking a row creates the selected layers and makes the last one current, whatever (8) says |
| 3 | Apply to entity | Enabled with exactly one row selected. Creates that layer and makes it current, then hides the window and asks you to select entities in the drawing: they move to that layer, polylines take the constant width and every entity takes the linetype scale. The original current layer is put back at the end |
| 4 | Linear draw | Runs CAPCAD_ROAD_LANE, the lane drawing tool (see Carriageway Helpers) |
| 5 | Create Selected Items | Creates (or updates) in the drawing the layers of the selected rows, from the catalogue. With (8) ticked and enabled, the layer becomes current |
| 6 | Create All Layers… | Creates the layers of every visible row: whatever the filter left on screen, not the whole catalogue. It asks first, saying how many there are |
| 7 | Redefine layers if different | Ticked (the default): create and redefine: an existing layer has its colour, linetype, lineweight, transparency, description and plot flag reapplied. Unticked: create without redefining: an existing layer is only thawed and turned on, and the rest is left alone |
| 8 | Make Active (if only one selected) | Ticks itself and enables when exactly one row is selected; with any other selection it unticks and disables. Read by Create Selected Items (5) |
| 9 | Width | The constant width Apply to entity (3) gives to polylines. Selecting one row fills it with the layer's own default width, when the style defines one |
| 10 | Linetype scale | The linetype scale Apply to entity (3) gives to the entities. Selecting one row fills it with the layer's own default scale, when the style defines one |
| 11 | → / ← | Switches narrow ↔ wide. The arrow points → when the window is narrow and ← when it is wide |
| 12 | CapCad: Faixas mais comuns | Not available in this version: ticking it adds nothing to the list |
| 13 | CapCad: Demais layers | Adds the catalogue's layer roles, resolved by the active style |
| 14 | Do estilo | Adds the layers the active style declares itself |
| 15 | Gerais | Adds the general layers |
The Style in use: label (wide mode only, to the right of the filter) shows the name of the style that resolved the list; with no style set, it shows capcad.default.
When the style does not define a default width or linetype scale for the layer, Apply to entity uses the values in boxes 9 and 10.
The columns of the list
| Column | What it is |
|---|---|
| CapCad variable | The internal role: the key the commands use, for example SINA_HOR_BR_ZPA. It does not change with the style or with the country |
| CAD layer | The name the layer will have in the drawing, with the renaming, the translation into the country profile's language and the style's prefix already applied |
| Description | The description the catalogue writes onto the layer |
| Colour | The RGB, when the role defines a true colour; otherwise the ACI index |
| Linetype | The resolved linetype, or Continuous when the role defines none |
| Plot? | yes / no: several helper roles are born unplottable on purpose |
CapCad: Demais layers lists the roles the catalogue resolves on its own, from the creation action alone. Roles that describe a family rather than a layer need a suffix, a complement or a feature name to exist (GIS_, SUFFIX_IMP, CAPSIGN_TEXT_, ALIGNMENT_CURVAS_, EIXO_PREFIX_, DEFENSA_TERMINAL…) and so do not appear.
Workflow
- Set the project's style first: it is the style that decides the names and colours the list will show.
- Run
CAPCAD_LAYER_ASSISTANT. - Tick the categories you want (12 to 15) and type in the Filter (1) what you are after:
ZPA,SINA_VERT,DEFENSA,zebrado… - Select the rows you want (Ctrl and Shift work) and click Create Selected Items (5). To create everything the filter left on screen, use Create All Layers… (6) and confirm.
- To work on one specific layer, double-click it: the layer is created and becomes current.
- To move existing entities onto a layer, select its row, check Width (9) and Linetype scale (10), click Apply to entity (3) and select the entities.
The command line reports how many layers were created or updated, and which one is now current.
Layer Tools
CAPCAD_LAYER_MANAGER opens a modeless window with three tabs: the converter, the deletion of hidden layers and the tools. Running the command again with the window open only brings it to the front.
Layer converter tab
| # | Control | What it does |
|---|---|---|
| 6 | Layers (one pair per line: old=new, or pasted from Excel) | The converter's text: one line per pair |
| 7 | Inherit properties from old layer | Ticked (the default): the new layer is created with the old layer's colour, linetype, plot flag, lineweight, transparency and description. Unticked: the new layer is created by name only, with no properties |
| 9 | Redefine new layer if existent | Ticked (the default): when the new layer already exists, the inherited properties are applied to it too. Only acts together with (7) |
| 8 | Convert layers | Runs the mapping. The foot of the window reports how many entities changed and how many pairs were used |
Each line of field (6) is a pair. A line with a tab is split at the tab (what a two-column paste from a spreadsheet gives); otherwise at =; otherwise at a comma. The old name is compared case-insensitively; blank lines and lines with no separator are ignored, and a repeated old name keeps its last line.
OLD_MARKINGS=SINA_HOR_BR_LMS2
YELLOW LINES=SINA_HOR_AM_LFO3
OLD CENTRELINE=EIXO
The command walks model space and moves every entity whose current layer is in the left-hand column onto the right-hand layer, creating that layer the first time it is needed. A name with characters the CAD does not accept is corrected before the layer is created, and the entities go onto the corrected name. Above 1000 entities a progress bar appears, and it can be cancelled: the entities already moved stay moved, and the report says (cancelled).
The name you type counts as typed. The destination layer is created under the name you wrote, not resolved through the catalogue. Writing
SINA_HOR_BR_ZPAhere creates a layer with that name, with the old layer's look (or none) rather than the colour, linetype and plot flag the role would carry, and without the style's prefix. To get the right layer with the right properties, create it first in Drawing Standards and then convert to the name shown there in the CAD layer column.
Layer delete tab
The tab opens with a warning and its notes: the entities of every layer in the chosen state are deleted, which the CAD's Undo reverses; layer 0, a layer that is off but current, and xref layers are not affected; locked layers are unlocked first.
| # | Control | What it does |
|---|---|---|
| 2 | Frozen Layers | Target: frozen layers |
| 1 | Off Layers | Target: layers that are off |
| 3 | Both | Target: off or frozen. This is the initial choice |
| 4 | Understood, go ahead | Hides the window, deletes the target layers and everything on them, then closes the window |
| 10 | Not sure, leave. | Closes the window without deleting anything |
What Understood, go ahead does:
- it erases the entities sitting on the target layers in every block of the drawing: model space, the layouts and the block definitions. Xrefs are not touched;
- it then deletes the layers themselves;
- it skips layer
0and the layers of xrefs, and it refuses the current layer andDEFPOINTS, counting them as not deleted; - it unlocks a locked target layer first.
The command line reports how many entities were erased, how many layers were deleted and how many were not (current layer / DEFPOINTS), or that no layer matches.
Tools tab
| # | Control | What it does |
|---|---|---|
| 5 | Entity layer name to clipboard | Hides the window, asks for an entity in the drawing and copies its layer name to the clipboard. The window comes back and shows the copied name |
This exists precisely to feed the converter: click an entity and paste the name into the left-hand side of a mapping line.
Unlocking every layer
CAPCAD_LAYER_UNLOCK_ALL opens no window and asks for no selection: it unlocks every locked layer of the drawing, including 0, and reports on the command line how many were unlocked. It does not turn on layers that are off and it thaws nothing: a lock is only a lock.
Remembered between sessions
Nothing. Neither window writes its options to the preferences: the filter comes back empty, Redefine layers if different comes back ticked, Inherit properties and Redefine new layer come back ticked, the deletion target comes back to Both and the mapping field comes back empty on every run.
Notes
- The converter works in model space only. Entities in paper space, inside block definitions or inside xrefs keep their layer. The deletion, on the other hand, reaches the layouts and the block definitions.
- Deleting is for good once you leave the drawing. The layers and their content go together; within the session the CAD's Undo brings them back.
- Creating is not the same as redefining. With (7) unticked in Drawing Standards, a layer that already exists in the drawing is only thawed and turned on; properties someone tuned by hand are preserved. That is the safe mode for third-party drawings.
- Some captions are not translated. The Categorias group box and its four boxes (12 to 15) show in Portuguese in every language, and the confirmation of Create All Layers… is in English in every language.
- The double click always makes the layer current. That is the hint written on the window itself (Double click a single layer to create and make it active).
See also
- Linetypes: the other side of a layer's appearance: loading, creating and identifying dash patterns.
- CapStyle Editor: the editor's Layers tab and the QA: compare with DWG check.




