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

acr variants

Inspect and edit project variants in an Altium .PrjPcb file. With no subcommand, runs list. When no project is passed, the command auto-detects exactly one .PrjPcb in the current directory.

PropertyValue
Commandacr variants (or altium-cruncher variants)
CategoryCompilation & Project Analysis
Workflow GuidePrjPcb Guide: Variants

Usage

text
acr variants [-h] [--project PROJECT] <variants-action> ...

Arguments And Options

Options

FlagDefaultDescription
--project <PROJECT>—explicit .PrjPcb project path

Subcommands

SubcommandSummary
acr variants listlist variants and part changes
acr variants deletedelete one variant
acr variants renamerename one variant
acr variants cloneclone an existing variant
acr variants toggle-dnptoggle one designator DNP in a variant

acr variants list

List variants and part changes.

text
acr variants list [-h] [--project PROJECT] [--json] [--no-color] [project_file]

Positional Arguments

ArgumentRequiredDescription
project_fileNoPrjPcb file (optional if PrjPcb in CWD)

Options

FlagDefaultDescription
--project <PROJECT>—explicit .PrjPcb project path
--jsonFalsewrite JSON
--no-colorFalsedisable terminal color in human output

acr variants delete

Delete one variant.

text
acr variants delete [-h] [--project PROJECT] [--dry-run] [--json] [name] [project_file]

Positional Arguments

ArgumentRequiredDescription
nameNovariant name to delete
project_fileNoPrjPcb file (optional if PrjPcb in CWD)

Options

FlagDefaultDescription
--project <PROJECT>—explicit .PrjPcb project path
--dry-runFalsevalidate and report without writing the project file
--jsonFalsewrite MCO result JSON

acr variants rename

Rename one variant.

text
acr variants rename [-h] [--project PROJECT] [--dry-run] [--json] [name] [new_name] [project_file]

Positional Arguments

ArgumentRequiredDescription
nameNovariant name to rename
new_nameNonew variant name
project_fileNoPrjPcb file (optional if PrjPcb in CWD)

Options

FlagDefaultDescription
--project <PROJECT>—explicit .PrjPcb project path
--dry-runFalsevalidate and report without writing the project file
--jsonFalsewrite MCO result JSON

acr variants clone

Clone an existing variant.

text
acr variants clone [-h] [--unique-id UNIQUE_ID] [--allow-fabrication] [--no-allow-fabrication] [--current] [--project PROJECT] [--dry-run] [--json] [source_name] [name] [project_file]

Positional Arguments

ArgumentRequiredDescription
source_nameNovariant name to clone
nameNonew variant name
project_fileNoPrjPcb file (optional if PrjPcb in CWD)

Options

FlagDefaultDescription
--unique-id <UNIQUE_ID>—explicit new variant UniqueId
--allow-fabricationNoneset AllowFabrication=1 on the cloned variant
--no-allow-fabricationTrueset AllowFabrication=0 on the cloned variant
--currentFalsemake the cloned variant the current project variant
--project <PROJECT>—explicit .PrjPcb project path
--dry-runFalsevalidate and report without writing the project file
--jsonFalsewrite MCO result JSON

acr variants toggle-dnp

Toggle one designator DNP in a variant.

text
acr variants toggle-dnp [-h] [--unique-id UNIQUE_ID] [--alternate-part ALTERNATE_PART] [--project PROJECT] [--dry-run] [--json] [variant] [designator] [project_file]

Positional Arguments

ArgumentRequiredDescription
variantNovariant to edit
designatorNocomponent designator to toggle DNP
project_fileNoPrjPcb file (optional if PrjPcb in CWD)

Options

FlagDefaultDescription
--unique-id <UNIQUE_ID>—Altium variation UniqueId; inferred for simple non-channel schematics
--alternate-part <ALTERNATE_PART>''optional AlternatePart value for the variation row
--project <PROJECT>—explicit .PrjPcb project path
--dry-runFalsevalidate and report without writing the project file
--jsonFalsewrite MCO result JSON

Examples

powershell
# List assembly variants and DNP parts on a project
acr variants list project.PrjPcb

# Clone an assembly variant
acr variants clone project.PrjPcb --source Prototype --name Production

# Toggle one designator between fitted and DNP
acr variants toggle-dnp project.PrjPcb --variant Production --designator J7
altium-monkey v2026.11.26 · gobblerito·Docs updated 2026.11.29 17:55 UTC (0665053)