runfunction not enough parameter.

runfunction not enough parameter.

chien_yu_c
Not applicable
98 Views
1 Reply
Message 1 of 2

runfunction not enough parameter.

chien_yu_c
Not applicable

[ FlexSim 20.2.3 ]

I am trying to do a basic simulation by resetting the model, run the model and exit. The equivalent flexscript is
resetmodel();

runfunction();

cmdexit();

from the ref. page, those three should be enough. But when I tried it out on script console, I am getting "Not enough parameters in call to command runfunction". I tried with go(), but that would not block the script, thus existing the program immediately. thx

0 Likes
Accepted solutions (1)
99 Views
1 Reply
Reply (1)
Message 2 of 2

Jacob_Gillespie
Autodesk
Autodesk
Accepted solution

The documentation for runfunction() is incorrect. The signature should be:

runfunction(num noreset)

So just pass 1 into runfunction();