Plecs Layout Check
plecs_layout_checkChecks top-level PLECS schematic geometry for overlapping component boxes, diagonal wire segments, and wires crossing components, reporting layout errors, warnings, and readability issues.
Instructions
Check schematic geometry of a model that is open in PLECS.
Uses the bounding box per component from plecs.webserver getCircuitBitmap
plus Position/Points from the .plecs text, and reports only what is
certain: LAYOUT-001 (error) two component boxes intersect, LAYOUT-002
(warning) a wire polyline has a diagonal segment, LAYOUT-003 (info) a wire
is drawn across a component that is not one of its endpoints. A crossing is
cosmetic - PLECS connects only through explicit connections - but it makes the
schematic hard to read.
Top-level schematic only; margin absorbs the ~2 unit rounding between
schematic coordinates and rendered pixels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| margin | No | ||
| model_name | Yes | ||
| include_wires | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||