Autocomplete, hover documentation and API search for DIgSILENT PowerFactory 2023 Python scripting inside VS Code.
Covers 1598 methods across 216 classes extracted from the official PowerFactory Python Reference Manual.
Features
Hover Documentation
Hover over any PowerFactory method to see its full documentation inline.

Autocompletion
Type app. to get a list of all Application methods with descriptions and return types.
Works with any PowerFactory class: ElmLne, ComLdf, DataObject, etc.
API Search
Open the Command Palette (Ctrl+Shift+P) and run PowerFactory: Search API to search across all 1598 methods by name or description.
Usage
import powerfactory
app = powerfactory.GetApplication() # hover works here
ldf = app.GetFromStudyCase('ComLdf') # type . to get completions
ldf.Execute()
The extension tracks variable assignments and infers PowerFactory types automatically.
Classes covered
Application, DataObject, ElmLne, ElmTr2, ElmGenstat, ElmLod, ElmBus,
ComLdf, ComShc, ComSim, ComInc, ComRel3, IntPrj, IntCase, IntScenario,
and 200+ more.
Requirements
- VS Code 1.85+
- Python extension (for language detection)
Source
All documentation is extracted exclusively from the PowerFactory 2023 Python Function Reference by DIgSILENT GmbH.