Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use TITLDT to return the two line case title.

line1, line2 = psspy.titldt()

You can use TITLDT titldt() to return the two line case title.

line1, line2 = psspy.titldt()

or sfiles() to return the current Saved Case and Snapshot filenames.

SavedCase, SnapFile = sfiles()

You can use titldt() to return the two line case title.

line1, line2 = psspy.titldt()

or sfiles() to return the current Saved Case and Snapshot filenames.

SavedCase, SnapFile SavedCase, SnapFile = sfiles()

and you can use it to check if a case file is open as follows:

if not psspy.sfiles()[0]: print "No Saved Case file is open" else: print psspy.sfiles()[0] + " Saved Case file is open"

You can use sfiles() to return the current Saved Case case and Snapshot filenames.

SavedCase, SnapFile = sfiles()

psspy.sfiles() print SavedCase

and you can use it to check if a case file is open as follows:

if not psspy.sfiles()[0]:
    print "No Saved Case file is open"
else:
    print psspy.sfiles()[0] + " Saved Case file is open"

open"