Your search returned 95 items.
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…
Tags
The attached PowerFactory project includes a script called "Coordinates Import" which allows users to import geographical coordinates from GIS or other systems that are stored in an Excel file for the…
Tags
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 support…
Tags
For grid planning and operating purposes, there are some non-calculation-relevant reasons to model the masts / towers with their exact position and some additional properties in a geographic diagram.…
Tags
The DIgSILENT “Scripting with Python in PowerFactory” focusses mainly on the communication between PowerFactory and Python. The training includes a short introduction to the Python language and…
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…
Tags
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…
Tags
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…
Tags
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…
Tags
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)…
Tags