On This Page (5)
acr pcblib
Create and mutate Altium .PcbLib files through generated MCO operations. The initial create workflow composes a library from pcblib.create plus pcblib.add_footprint so future footprint primitive operators can extend the same path.
| Property | Value |
|---|---|
| Command | acr pcblib (or altium-cruncher pcblib) |
| Category | Document Authoring, Change Orders & Board Planning |
| Workflow Guide | PcbLib Guide |
Usage
acr pcblib [-h] <pcblib-action> ...Subcommands
| Subcommand | Summary |
|---|---|
acr pcblib create | create a new PcbLib with one initial footprint |
acr pcblib create
Create a new PcbLib with one initial footprint.
acr pcblib create [-h] [--footprint FOOTPRINT] [--height HEIGHT] [--description DESCRIPTION] [--parameter PARAMETER] [--primitive-parameter PRIMITIVE_PARAMETER] [--emit-mco EMIT_MCO] [--force] [--dry-run] [--json] [--json-output JSON_OUTPUT] [--no-color] filePositional Arguments
| Argument | Required | Description |
|---|---|---|
file | Yes | output .PcbLib path |
Options
| Flag | Default | Description |
|---|---|---|
--footprint <FOOTPRINT> | — | initial footprint name (default: output file stem) |
--height <HEIGHT> | '0mil' | footprint height string (default: 0mil) |
--description <DESCRIPTION> | '' | footprint description |
--parameter <PARAMETER> | — | set one footprint Parameters value as NAME=VALUE |
--primitive-parameter <PRIMITIVE_PARAMETER> | — | set one footprint PrimitiveParameters value as NAME=VALUE |
--emit-mco <EMIT_MCO> | — | write the generated MCO JSON file before execution |
--force | False | overwrite an existing PcbLib or emitted MCO file |
--dry-run | False | validate and report planned outputs without writing files |
--json | False | write the MCO execution report JSON to stdout |
--json-output <JSON_OUTPUT> | — | write the MCO execution report JSON to this file |
--no-color | False | disable terminal color in human output |
Examples
# Create a new .PcbLib footprint library through MCO
acr pcblib create out/footprints.PcbLib