First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Great suggestions here! By running the script from a opened case file in PSSE, the default location for the printer is the current working folder for the case file.
I used:
psspy.printdiagfile(r"""Microsoft Print to PDF""", copies, orientation)
The name of the pdf-file is found by adding ".pdf" to the name of the sld-file. I used the following to rename it:
os.rename(oldPDFname, newPDFname)
This was performed in v35.