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.
Property Value Command acr variants (or altium-cruncher variants) Category Compilation & Project Analysis Workflow Guide PrjPcb Guide: Variants
Usage
text Copy
acr variants [-h] [--project PROJECT] <variants-action> ...
Arguments And Options
Options
Flag Default Description --project <PROJECT>— explicit .PrjPcb project path
Subcommands
acr variants list
List variants and part changes.
text Copy
acr variants list [-h] [--project PROJECT] [--json] [--no-color] [project_file]
Positional Arguments
Argument Required Description project_fileNo PrjPcb file (optional if PrjPcb in CWD)
Options
Flag Default Description --project <PROJECT>— explicit .PrjPcb project path --jsonFalsewrite JSON --no-colorFalsedisable terminal color in human output
acr variants delete
Delete one variant.
text Copy
acr variants delete [-h] [--project PROJECT] [--dry-run] [--json] [name] [project_file]
Positional Arguments
Argument Required Description nameNo variant name to delete project_fileNo PrjPcb file (optional if PrjPcb in CWD)
Options
Flag Default Description --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 Copy
acr variants rename [-h] [--project PROJECT] [--dry-run] [--json] [name] [new_name] [project_file]
Positional Arguments
Argument Required Description nameNo variant name to rename new_nameNo new variant name project_fileNo PrjPcb file (optional if PrjPcb in CWD)
Options
Flag Default Description --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 Copy
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
Argument Required Description source_nameNo variant name to clone nameNo new variant name project_fileNo PrjPcb file (optional if PrjPcb in CWD)
Options
Flag Default Description --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 Copy
acr variants toggle-dnp [-h] [--unique-id UNIQUE_ID] [--alternate-part ALTERNATE_PART] [--project PROJECT] [--dry-run] [--json] [variant] [designator] [project_file]
Positional Arguments
Argument Required Description variantNo variant to edit designatorNo component designator to toggle DNP project_fileNo PrjPcb file (optional if PrjPcb in CWD)
Options
Flag Default Description --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 Copy
# 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