Category
Tags
Your search returned 187 items.
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…
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()…
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 place of…
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…
If you are printing your data to the output window the tab will be removed and replaced by 2 blanks. To keep the tab (t) you can print directly to a file (e.g. csv) Here is a small piece of sample…
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…
A running PowerFactory instance can be terminated via DPL by using the ComExit command. Example: object cmd; cmd = GetFromStudyCase('ComExit'); cmd.Execute();…
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…
Table Reports (ComTablereport) can be used to display all variables and result parameters in an user-defined table. The attached project contains a simple Table Report which is: - Executing a Load…
Tags
There can be issues when calling pandas.read_excel starting from PowerFactory 2023 SP4 when an Anaconda is used. This is because with PowerFactory 2023 SP4 we started shipping a new version of…