Ask Your Question
0

Pass arguments to IDV with runrspnsfile

asked 2018-09-13 13:45:57 -0500

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

edit retag flag offensive 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'")

chris gravatar imagechris ( 2021-11-12 19:45:24 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-09-13 15:12:37 -0500

perolofl gravatar image

updated 2018-09-13 16:11:12 -0500

Just separate the filename and arguments with comma:

 psspy.runrspnsfile("'parm.idv',arg1,arg2,arg3,etc")
edit flag offensive delete link more

Comments

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

KyleA gravatar imageKyleA ( 2018-09-13 15:45:36 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: 2018-09-13 13:45:57 -0500

Seen: 515 times

Last updated: Sep 13 '18