altium monkey v2026.11.26 · gobblerito
On This Page (6)

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.

PropertyValue
Commandacr vdoc (or altium-cruncher vdoc)
Aliasesvirtual-doc, virtual_doc
CategoryFabrication & Manufacturing Outputs
Config Filevdoc.jsonc (vdoc_config.a0; inherits sibling fab.jsonc read-only)
Workflow GuideFabrication & Outputs: acr vdoc

Usage

text
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

ArgumentRequiredDescription
inputNoInput .PrjPcb, .PcbDoc, or .PcbLib (omit to auto-discover a project in CWD).

Options

FlagDefaultDescription
--config <CONFIG>—Path to vdoc.jsonc (or fab.jsonc). Auto-discovers or creates sibling vdoc.jsonc.
--init-configFalseWrite a starter commented vdoc.jsonc configuration file and exit.
--force-configFalseOverwrite an existing vdoc.jsonc when used with --init-config.
--forceFalseAllow 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-onlyFalseClear previously baked virtual primitives and virtual unions on mapped mechanical layers without redrawing, and hide emptied virtual layers from Altium.
--keep-layersFalseWhen used with --clear, keep the cleared virtual mechanical layers enabled, named, and paired in Altium instead of hiding them.
--no-clearFalseDo not clear previously baked primitives/unions on target mechanical layers.
--no-layer-namesFalseDo not set display names on target mechanical layers.
--no-layer-pairsFalseDo 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-backupFalseDo not create a .bak backup before overwriting in place.
--dry-runFalseValidate inputs and preview without writing files.
--no-colorFalseDisable ANSI colors on stderr.

Examples

powershell
# 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
altium-monkey v2026.11.26 · gobblerito·Docs updated 2026.11.29 17:55 UTC (0665053)