Plecs Model Clone
plecs_model_cloneCopy a PLECS model file, optionally rename it or rewrite matching lines with regex replacements, then load it to verify. Use this file-level workaround when PLECS RPC cannot edit models directly.
Instructions
Copy a model file, optionally rename/rewrite lines, then load it to verify.
replacements is a list of {"pattern": <regex>, "value": <replacement>}.
This is the file-level alternative to schematic editing (PLECS RPC cannot edit a model).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| source | Yes | ||
| target | Yes | ||
| validate | No | ||
| overwrite | No | ||
| replacements | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||