Your search returned 81 items.
Define a variable that contains a generator object and use CreateObject() method on it. It is assumed, that there are already characteristics available in the corresponding subfolder of the…
The attached project contains a small DPL example, where a controller will be created for asynchronous machines (ElmAsm). The DPL script is located inside the Scripts library. 1. Optionally it will…
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…
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…
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
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 form official…
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…
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…