flatten_hierarchy
Combine hierarchical schematic sheets into one flat schematic file. Merges all child content with offset positions, preserving the original hierarchy.
Instructions
Flatten a hierarchical schematic into a single sheet.
Merges all child sheet content into one schematic with offset positions.
Creates a new file — does NOT modify the original hierarchy.
Args:
schematic_path: Path to root .kicad_sch file
output_path: Path for flattened output (defaults to *_flat.kicad_sch)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schematic_path | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |