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

acr clean

Normalize schematic symbol/document styles for SchDoc, SchLib, and PrjPcb files, and clean PcbLib vendor footprint mechanical drafting noise. Supports pin name/designator font normalization, symbol body rectangle normalization, schematic power symbol normalization, schematic net-label normalization, component designator/parameter font normalization, component free-text normalization, schematic wire normalization, schematic no-erc normalization, sheet-style normalization, and symbol internal-graphics monochrome normalization. For PcbLib input, supports JSON/JSONC-configured mechanical-layer primitive removal, configured text-string removal, and configured mechanical-region removal while preserving component bodies and embedded models.

PropertyValue
Commandacr clean (or altium-cruncher clean)
CategoryLibraries, Assets & Importers
Config Filealtium-clean.json (--config-type schematic) or altium-pcblib-clean.json (--config-type pcblib)

Usage

text
acr clean [-h] [--config CONFIG] [--init-config] [--config-type {schematic,pcblib}] [--force-config] [-o OUTPUT] [--backup] [--backup-path BACKUP_PATH] [file]

Arguments And Options

Positional Arguments

ArgumentRequiredDescription
fileNoPrjPcb, SchDoc, SchLib, or PcbLib file (optional if one is auto-detected in CWD)

Options

FlagDefaultDescription
--config <CONFIG>—Path to clean JSON/JSONC config. For SchDoc/SchLib/PrjPcb, omitted means altium-clean.json next to input. For PcbLib, omitted means workspace config altium-pcblib-clean.json when available, otherwise the same filename next to input. If the resolved config is missing, creates a template and exits.
--init-configFalseWrite the appropriate commented JSONC config template and exit without loading or cleaning the input file
--config-type <CONFIG_TYPE>—Config template type for --init-config when no input file is supplied; schematic covers PrjPcb, SchDoc, and SchLib inputs (choices: schematic, pcblib)
--force-configFalseAllow --init-config to overwrite an existing config file
-o, --output <OUTPUT>—Output file path for SchDoc/SchLib/PcbLib, or output directory for PrjPcb (default: in-place overwrite)
--backupFalseCreate a backup copy of the input file before writing output
--backup-path <BACKUP_PATH>—Explicit backup file path for SchDoc/SchLib/PcbLib, or backup directory for PrjPcb (default: <input>.bak when --backup is set)

Examples

powershell
# Generate starter schematic or PcbLib cleanup config templates
acr clean --init-config --config-type schematic
acr clean --init-config --config-type pcblib

# Run config-driven cleanup on a library or folder
acr clean parts.PcbLib --config altium-pcblib-clean.json
altium-monkey v2026.11.26 · gobblerito·Docs updated 2026.11.29 17:55 UTC (0665053)