lib_add_footprint_track
Adds a line track to a footprint on silkscreen or courtyard layers using coordinates, width, layer, and units, so you can define component outlines and assembly markings.
Instructions
Add a track to the current footprint (for silkscreen/courtyard).
Args: x1: Start X in mils y1: Start Y in mils x2: End X in mils y2: End Y in mils width: Track width in mils layer: Layer name. Default "TopOverlay" (silkscreen). Any Altium layer is accepted, e.g. "BottomOverlay" or "Mechanical1".."Mechanical16" for courtyard / assembly outlines. footprint_name: footprint to write into. Empty uses the editor's current footprint; a name makes that footprint current first and refuses if it cannot. units: "mil" (default) or "mm", for every length and coordinate here, kept exact rather than rounded to whole mils.
Returns: Dictionary confirming track addition
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| layer | No | TopOverlay | |
| units | No | mil | |
| width | No | ||
| footprint_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||