opendss_add_element
Create a new OpenDSS element (Load, PVSystem, Storage, Line, etc.) from typed properties and re-solve; refuses to overwrite existing elements and verifies creation.
Instructions
Create a new element (PVSystem, Storage, Load, Line, Capacitor, RegControl, InvControl, LoadShape...) from a properties dict and re-solve.
Typed alternative to opendss_run_command("New ..."): refuses to overwrite an existing element, verifies that OpenDSS created it and reads the properties back. Use element_class + name, not 'Class.Name' in name.
Args: params: AddElementInput with element_class, name, properties, solve.
Returns: Command executed, values read back and solve status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |