Add PCB text primitives to an existing PcbDoc.
The sample creates a rectangular board outline, sets the origin to the lower-left outline corner, and places stroke text, TrueType text, mirrored bottom-side text, inverted TrueType text, inverted framed text, multiline text frame text, and Code 39 / Code 128 barcode text inside the board.
AltiumPcbDoc.from_file(...)AltiumPcbDoc.set_outline_rectangle_mils(...)AltiumPcbDoc.add_text(...)PcbTextKind,PcbBarcodeKind,PcbBarcodeRenderMode, andPcbTextJustificationAltiumPcbDoc.save(...)
From the repository root:
uv run python examples\pcbdoc_add_text\pcbdoc_add_text.pyexamples/pcbdoc_add_text/output/pcbdoc_add_text.PcbDoc