0

Pass arguments to IDV with runrspnsfile

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

KyleA's avatar
87
KyleA
asked 2018-09-13 13:45:57 -0500
edit flag offensive 0 remove flag close merge delete

Comments

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

Dengjun's avatar Dengjun (2021-11-12 19:45:24 -0500) edit
add a comment see more comments

1 Answer

2

Just separate the filename and arguments with comma:

 psspy.runrspnsfile("'parm.idv',arg1,arg2,arg3,etc")
perolofl's avatar
3.8k
perolofl
answered 2018-09-13 15:12:37 -0500, updated 2018-09-13 16:11:12 -0500
edit flag offensive 0 remove flag delete link

Comments

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

KyleA's avatar KyleA (2018-09-13 15:45:36 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer