Open an existing schematic that already contains one note, set that note to a
new absolute rectangle, and save the modified .SchDoc.
This example is a focused geometry-mutation probe. It shows how to set an existing object's absolute position without touching internal Altium coordinate units.
- loading an existing
SchDoc - reading note bounds through
note.bounds_mils - creating a new absolute
SchRectMils - assigning that rectangle back through
note.bounds_mils - saving with
AltiumSchDoc.save(...) - reopening and checking the moved bounds
From the project root:
uv run python examples\schdoc_move_note\schdoc_move_note.pyThis sample uses:
examples/schdoc_move_note/input/note_move_input.SchDoc
The script writes:
examples/schdoc_move_note/output/note_move_output.SchDoc
The input note starts at:
(1000, 3000) -> (3000, 4000)mil
The sample sets the note to:
(2500, 2500) -> (4500, 3500)mil
This example uses the public structured geometry helpers instead of raw internal
10-mil document units. location_mils exists for single-point placement, while
bounds_mils is the more natural fit for note/text-frame style records.