add_power_symbol
Place power symbols (VCC, GND) in schematics and automatically add PWR_FLAG to ensure ERC-clean power connections.
Instructions
Place a power symbol (VCC, GND, +3V3, etc.).
Uses place_component internally. Power symbols are regular symbols
from the 'power' library with isPower=True.
Automatically places a PWR_FLAG at the same position so the net
satisfies ERC (power pin driven).
Args:
lib_id: Library ID (e.g. "power:VCC", "power:GND")
reference: Reference (e.g. "#PWR01")
x: X position
y: Y position
rotation: Rotation in degrees
symbol_lib_path: Path to power symbol .kicad_sym if not in schematic.
Optional; omit to use the configured default.
schematic_path: Path to .kicad_sch file. Optional; omit to use the configured default.
project_path: Path to .kicad_pro file (for sub-sheet instance tracking)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| lib_id | Yes | ||
| rotation | No | ||
| reference | Yes | ||
| project_path | No | ||
| schematic_path | No | ||
| symbol_lib_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |