design_hints_from_sheet
Capture current schematic sheet component positions as placement hints so a re-run plan keeps existing parts fixed and places only new or changed ones.
Instructions
Current sheet positions, as placement_hints for a re-run.
THIS IS HOW YOU EDIT A SCHEMATIC WITH THE ENGINE. Editing by hand means choosing coordinates, which is what sch_place_components refuses. Do this instead:
design_edit_planto change the plan (add the part, change a value, add a net).design_hints_from_sheetto capture where everything currently sits.design_execute_planwith those hints. Every existing part stays exactly where it is, and only the new or changed ones are placed, by the engine rather than by you.
Positions come back as BODY CENTRES, the frame placement_hints
expects, converted from the symbol origins Altium reports. Pass
the returned hints through unchanged; do not round or adjust
them, and drop a refdes from the dict only when you deliberately
want the placer free to move that part.
Needs the <project>.canvas.json snapshot that
design_execute_plan writes, which is what records the library
symbol behind each refdes.
Args: project_path: Absolute path to the .PrjPcb whose sheet to read.
Returns:
ok / hints ({refdes: {x, y, rotation}}) / unmatched
(refdes present in the snapshot but not readable now) /
notes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||