Ask Your Question
0

How to see what case is open / if there is a case open using psspy? [closed]

asked Oct 24 '16

bcar11559 gravatar image

Is there an API to check:

1) If there is a case open (.sav file) 2) What case is open - return the filename?

Closed for the following reason the question is answered, right answer was accepted by bcar11559
close date 2016-10-24 05:39:53.007338

1 answer

Sort by » oldest newest most voted
1

answered Oct 24 '16

zezo510 gravatar image

updated Oct 24 '16

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

SavedCase, SnapFile = 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"
link

Comments

perfect thanks

bcar11559 gravatar imagebcar11559 (Oct 24 '16)

Question Tools

1 follower

Stats

Asked: Oct 24 '16

Seen: 932 times

Last updated: Oct 24 '16