Category
Tags
Your search returned 187 items.
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…
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() app.PrintPlain(prj)…
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=…
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 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)…
The attached example includes the DPL script "Searching" within the scripts library. It includes three different variations for searching objects using the pathname. The first option searches the…
Tags
There are different possibilities to control which study case should be evaluated. The first possibility would be to use a general set (SetSelect) and evaluate this set via the SEL object in \pf. To…
A Matlab Simulink model can be easily linked with a PowerFactory dynamic simulation by means of the FMI Standard. Matlab SImulink models can include various components, including Matlab Scripts or…
PowerFactory supports automatic execution of DPL scripts at user logon. All scripts that shall be executed automatically must be stored in the folder {USERNAME}\Settings\Startup. In case this folder…
Tags