VS Code Extensions
PowerFactory Python API

PowerFactory Python API

by pelaokano

PowerFactory Python API adds VS Code support for DIgSILENT PowerFactory 2023 scripting with method autocomplete, inline documentation, automatic PowerFactory type inference, and API search across 216 classes.

Downloads

92

Rating

— (0)

Version

1.0.1

Last updated

Apr 06, 2026

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.

hover

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.

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.