Ask Your Question
0

Pass arguments to IDV with runrspnsfile

asked Sep 13 '18

KyleA gravatar image

Hi, I've used runrspnsfile() alot thus far but now I have some scripts that need arguments passed to them. Normally one does this in the idv itself like so:

BAT_CASE, %1%
@input parm.idv

where %1% is the first argument and it can accept up to 9 arguments.

How does one mimic this behavior using

psspy.runrspnsfile("parm.idv")

Thanks

Comments

how to pass the string argument? for example, psspy.runrspnsfile("'Plot_Test_U1.idv', '274656', '1','ByronGenerating','U1','BYRON ;1U25.000','270694'")

Dengjun gravatar imageDengjun (Nov 13 '1)

1 answer

Sort by » oldest newest most voted
2

answered Sep 13 '18

perolofl gravatar image

updated Sep 13 '18

Just separate the filename and arguments with comma:

 psspy.runrspnsfile("'parm.idv',arg1,arg2,arg3,etc")
link

Comments

@perolofl Thanks! I figured it was something like that but the syntax isn't well documented.

KyleA gravatar imageKyleA (Sep 13 '18)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: Sep 13 '18

Seen: 564 times

Last updated: Sep 13 '18