Your search returned 95 items.
For this tasks you should use the AddCopy() method. For more information on this method refer to our Python technical reference. Example: import powerfactory app=powerfactory.GetApplication() user=…
Tags
If a network element is to be added to a project with Python, additional steps must be followed so that the element is also connected and displayed. In the first step, the new network element must be…
Tags
For Python, a PowerFactory DPL script (ComDPL) is an object as any other Com* objects (e.g. ComLdf- LoadFlow or ComShc-ShortCircuit,…). You just have to define a variable that represents the ComDpl…
Define a variable that contains a generator object and use CreateObject() method on it. It is assumed, that there are already characteristics available in the corresponding subfolder of the…
Tags
How to use Python in unattended mode (prior to 2016 known as engine mode) to work with PowerFactory?
Coding directly in Python Shell is quite similar as writing a Python script in PowerFactory. Only difference is that you have to append the system path so that Python would be able to find…
Tags
The recommended IDE for debugging is Eclipse (www.eclipse.org) with the Python add-on PyDev (www.pydev.org). Both Eclipse and PyDev are open source and can be downloaded from their official websites.…
Tags
In the dialog of branch elements such as lines (class ElmLne) the connected terminals are displayed in red color. The same information is displayed in Data Manager as columns "Terminal i", "Terminal…
In \pf 15.2 and \pf 15.1 an old approach has been used for some methods like for example GetContents(), GetPage(),... This methods were returning a list as the result ([result,input1,input2) for…
Tags
The Python support is based on provision of a Python module that can be imported into Python scripts allowing access to PowerFactory data. The scripts - independent of whether started from within…
Tags
The following code gets the export command from the stadycase and prepares it in such way that the data can be exported as a csv file. In this example a resultfile of a RMS-Simulation is used and the…
Tags