Your search returned 52 items.
Best way to do this is to first access your User by GetCurrentUser(). Once you have gain access to user you may use GetContents() or GetChildren() to access all projects that the current user…
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…
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…
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…
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()…
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()…
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…
Graphics such as plots or single line diagrams can be exported using scripts. PowerFactory supports two scripting languages Python and DPL. The following Python script example exports all plots and…
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…
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…