sch_set_component_unique_id
Stamps every schematic symbol matching a designator with the same UniqueId so multi-gate sub-parts remain one physical footprint, then verifies each write.
Instructions
Set UniqueId on every placed symbol with this designator.
ECO treats sub-parts of a multi-gate symbol (quad comparator, dual op-amp) as one physical footprint only when they share UniqueId. Four copies of part 1 with four UniqueIds become four packages.
EVERY MATCHING SYMBOL IS STAMPED, not the first. Sharing the id is the whole point of the property, so writing one of three and reporting success left the other two pointing at packages of their own, which is the exact condition this repairs.
Altium mints UniqueIds itself and may keep its own. Each write is read back and COMPARED; if any symbol kept its old id the call fails and names which ones, because a partial stamp still leaves the device split.
Args: designator: Component reference as drawn (e.g. "U_COMP2B"). unique_id: Target UniqueId, usually copied from the A unit.
Returns: Dict with success, designator, unique_id, symbols_written, symbols_found, and per-symbol locations with the id each reads back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unique_id | Yes | ||
| designator | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||