pcb_place_text
Places a text string at specified X/Y coordinates on the active PCB, with configurable layer, height, rotation, and stroke for silkscreen labels or fabrication annotations.
Instructions
Place a text string on the active PCB.
Args:
text: Text content to place
x: Text X position in mils
y: Text Y position in mils
layer: PCB layer name (default "TopOverlay"). Common choices:
"TopOverlay", "BottomOverlay", "TopLayer", "BottomLayer",
"Mechanical1"-"Mechanical16"
height: Text height in mils (default 60), decimals allowed
rotation: Rotation angle in degrees (default 0)
stroke: Stroke width in mils; 0 keeps Altium's default.
To resize existing designators use pcb_set_text_style.
Returns: Dictionary with placed text properties, height and stroke as read back from the placed text
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| text | Yes | ||
| layer | No | TopOverlay | |
| height | No | ||
| stroke | No | ||
| rotation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||