Compare two components
compare_componentsCompare two Altium components from same or different libraries to reveal primitive-level differences in pads, vias, tracks, parameter sets, and properties, ignoring identity attributes.
Instructions
Compare two specific components in detail, showing differences in primitives, parameters, and properties. Components can be from the same library or different libraries. Returns primitive-level differences for every kind: pads, vias, tracks, arcs, regions, text, fills and 3D bodies of a footprint; pins, every graphic shape, parameters and footprint links of a symbol. Identity (GUIDs, unique ids) is never a difference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tolerance | No | Tolerance for floating-point comparisons in mm (default: 0.001) | |
| filepath_a | Yes | Path to the first library file (.PcbLib or .SchLib) | |
| filepath_b | Yes | Path to the second library file (can be same as filepath_a) | |
| component_a | Yes | Name of the first component | |
| component_b | Yes | Name of the second component | |
| include_geometry | No | Include detailed geometry comparisons for primitives (default: true) |