Your search returned 33 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=…
This is something typical for Python. What you should do is import imp module and reload the changed one. Imp module is built in module and is part of all python version supported by PowerFactroy. For…
ComPython has a different approach to subscripting as compared to ComDPL. Two methods are shown below: Define a subfunction inside your *.py file. This subfunction can later on be used at any…
You can write a script that can do this for you. PowerFactory supports two scripting languages Python and DPL. Refer to the User Manual for more information on this. Here you will find just a simple…
Microsoft Excel can be used by Python scripts if the “Python for Windows Extensions" PyWin32 (http://sourceforge.net/projects/pywin32/)package is installed, which includes Win32 API, COM support and…
Just call Deactivate() method on your project. Easiest way to access the project you are using in the script is via GetActiveProject() method.  Example: prj=app.GetActiveProject()…
Example how you can quickly read all values of the voltage and to place them in a list after Load Flow calculation has been executed.   terms=app.GetCalcRelevantObjects('*.ElmTerm') ldf.Execute()…
To read an input parameter of a ComPython object in Python you will first need to access your script. For example: script=app.GetCurrentScript() Now you have gain access to you ComPython object and…
To use external objects in Python you will first need to access your script. For example with: script=app.GetCurrentScript() Now you have gain access to you ComPython object and you can call any…
Method GetProjectFolder() helps you with the navigation through folders inside of the project. It returns the project folder of a given type of active project. You can use this method to access Study…