acr vdoc
Compute FabView virtual layers (cutouts, Pin 1, polarity symbols, assembly outlines, assembly designators, pad labels) and bake them onto Altium mechanical layers through MCO using vdoc.jsonc (defaulting to MECHANICAL35..51, above Altium's standard M1..M32 library layers). Refuses to overwrite occupied non-virtual mechanical layers unless --force is passed.
| Property | Value |
|---|---|
| Command | acr vdoc (or altium-cruncher vdoc) |
| Aliases | virtual-doc, virtual_doc |
| Category | Fabrication & Manufacturing Outputs |
| Config File | vdoc.jsonc (vdoc_config.a0; inherits sibling fab.jsonc read-only) |
| Workflow Guide | Fabrication & Outputs: acr vdoc |
Usage
acr vdoc [-h] [--config CONFIG] [--init-config] [--force-config] [--force] [--map KEY=LAYER] [--layers KEYS] [--footprints NAMES] [--variant VARIANT] [--designator-mode {strokes,native_text}] [--clear] [--keep-layers] [--no-clear] [--no-layer-names] [--no-layer-pairs] [-o OUTPUT] [--backup-path BACKUP_PATH] [--no-backup] [--dry-run] [--no-color] [input]Arguments And Options
Positional Arguments
| Argument | Required | Description |
|---|---|---|
input | No | Input .PrjPcb, .PcbDoc, or .PcbLib (omit to auto-discover a project in CWD). |
Options
| Flag | Default | Description |
|---|---|---|
--config <CONFIG> | — | Path to vdoc.jsonc (or fab.jsonc). Auto-discovers or creates sibling vdoc.jsonc. |
--init-config | False | Write a starter commented vdoc.jsonc configuration file and exit. |
--force-config | False | Overwrite an existing vdoc.jsonc when used with --init-config. |
--force | False | Allow clearing target mechanical layers that already contain non-virtual primitives. |
--map <KEY=LAYER> | — | Map virtual layer key to mechanical layer (repeatable/comma-separated, e.g. CUTOUTS=MECHANICAL35,PIN1_TOP=MECHANICAL36). |
--layers <KEYS> | — | Comma-separated virtual layer filter (e.g. CUTOUTS,PIN1_TOP,PAD_LABELS_TOP). |
--footprints <NAMES> | — | Comma-separated footprint filter for .PcbLib inputs. |
--variant <VARIANT> | — | Altium assembly variant name for project/board baking. |
--designator-mode <DESIGNATOR_MODE> | — | Assembly designator baking mode (default: strokes). (choices: strokes, native_text) |
--clear, --clear-only | False | Clear previously baked virtual primitives and virtual unions on mapped mechanical layers without redrawing, and hide emptied virtual layers from Altium. |
--keep-layers | False | When used with --clear, keep the cleared virtual mechanical layers enabled, named, and paired in Altium instead of hiding them. |
--no-clear | False | Do not clear previously baked primitives/unions on target mechanical layers. |
--no-layer-names | False | Do not set display names on target mechanical layers. |
--no-layer-pairs | False | Do not configure top/bottom mechanical layer pairs. |
-o, --output <OUTPUT> | — | Write baked document to a separate path instead of overwriting in place. |
--backup-path <BACKUP_PATH> | — | Custom backup path when overwriting in place (default: <input>.bak). |
--no-backup | False | Do not create a .bak backup before overwriting in place. |
--dry-run | False | Validate inputs and preview without writing files. |
--no-color | False | Disable ANSI colors on stderr. |
Examples
# Create a starter vdoc.jsonc with safe MECHANICAL35..51 defaults
acr vdoc --init-config --config vdoc.jsonc
# Preview baking without writing files
acr vdoc project.PrjPcb --dry-run
# Bake in place (writes <board>.PcbDoc.bak first, blocks on occupied layers)
acr vdoc project.PrjPcb
# Bake specific layers to a separate output file
acr vdoc board.PcbDoc -o out/board_vdoc.PcbDoc --layers CUTOUTS,PIN1_TOP,PAD_LABELS_TOP
# Clear previously baked virtual layers and hide emptied mechanical layers
acr vdoc project.PrjPcb --clear