Category
Tags
Your search returned 47 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=…
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…
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…
To access an Folder inside of your PowerFactory project you can use GetProjectFolder() method. As input to this method you can just write type of the Folder you would like to access (e.g. ‘scen’…
To link a time characteristic to the input variable of an element, a ChaRef object with the name of the parameter has to be created in the element. For this, get the element (e.g. a generator object)…
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…
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.…
If an error message appears when importing the powerfactory module stating “ DLL load failed: the specified module could not be found”, this means that Microsoft Visual C++ Redistributable for Visual…
You can access to Microsoft Word by Python scripts if the “Python for Windows Extensions" PyWin32 (http://sourceforge.net/projects/pywin32/) package is installed, which includes Win32 API, COM support…
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…