Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have used Python with PowerFactory, but only since the recently released Version 15.1.

You can run python scripts from within and outside PowerFactory. Outside you first get Python to start PowerFactory.

From within PowerFacory the scripts are quite straight forward. For example:

import powerfactory app = powerfactory.GetApplication() app.PrintPlain('Hello World')

Will write "Hello World' to the output box in PowerFactory. Running Python from the outside to run PowerFactory is a little more complicated, but not too bad.

PowerFactory's own language is called DLP. It is like C, but not quite. It can be a little restrictive. You are limited to its inbuilt data types which aren't particularly comprehensive.

Theoretically it can be interfaced with to outside PowerFactory, but this is limited - you cannot run DLLs that open dialog boxes.

click to hide/show revision 2
Code formatting

I have used Python with PowerFactory, but only since the recently released Version 15.1.

You can run python scripts from within and outside PowerFactory. Outside you first get Python to start PowerFactory.

From within PowerFacory PowerFactory the scripts are quite straight forward. For example:

import powerfactory
app = powerfactory.GetApplication()
app.PrintPlain('Hello World')

World')

Will write "Hello World' to the output box in PowerFactory. Running Python from the outside to run PowerFactory is a little more complicated, but not too bad.

PowerFactory's own language is called DLP. It is like C, but not quite. It can be a little restrictive. You are limited to its inbuilt data types which aren't particularly comprehensive.

Theoretically it can be interfaced with to outside PowerFactory, but this is limited - you cannot run DLLs that open dialog boxes.