pcb_autoplace_silkscreen
Reposition PCB reference designators that violate silkscreen or solder-mask clearance, leave already-clear ones untouched, and report any that cannot be placed.
Instructions
Move designators that break silk clearance to a clear position.
A visible designator that is closer than the silk clearance to
anything else on its overlay layer (component outlines, texts,
fills), closer than the mask clearance to a pad's mask opening on
its side, or off the board, is tried at a ring of auto-position
anchors and left on the first that clears. A designator that is
already clear is not touched, and one no anchor clears goes back
where it was and is listed in unplaced_designators for a
person. First-fit on bounding rectangles, so it errs towards
"blocked"; run DRC after.
Args:
silk_clearance_mils: Silk to silk clearance. None reads the
board's Silk To Silk rule.
mask_clearance_mils: Silk to solder mask clearance. None
reads the board's Silk To Solder Mask rule.
mask_expansion_mils: How far a pad's mask opening extends past
its copper (default 4, Altium's default).
designators: Only these components. None means all.
Refused with NO_CLEARANCE, moving nothing, when a clearance is neither given nor readable from an enabled rule.
Returns:
placed, already_clear, unplaced, hidden,
total, the placed and unplaced designators, and each
clearance used with its source (argument or the rule's
name). skipped is unplaced + hidden.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| designators | No | ||
| mask_clearance_mils | No | ||
| mask_expansion_mils | No | ||
| silk_clearance_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||