pcb_set_text_visibility
Toggles designator and comment visibility on PCB components to hide labels for assembly output, reveal comments for reviews, or mute selected parts.
Instructions
Bulk-toggle component designator and / or comment visibility.
For the common workflows:
Hide all designators before generating an assembly PDF.
Show comments during a value-review pass.
Hide just the noisy 0402 designators while keeping IC labels.
Args:
designators: If True/False, set Component.NameOn for
matched components. None leaves designator visibility
alone.
comments: If True/False, set Component.CommentOn. None
leaves comment visibility alone.
filter: Restrict to these designator names (e.g. ["U1", "U2", "C5"]). None applies to every component.
Match is case-sensitive whole-string.
At least one of designators / comments must be supplied.
Returns:
Dict with:
- matched: components inspected (after filter)
- updated_names: components whose NameOn flipped
- updated_comments: components whose CommentOn flipped
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | ||
| comments | No | ||
| designators | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||