I run a .cmd file after my sims to pull certain data and write it to a text file. I would like to get some numbers at a specific time in the sim. I'm trying to use a WHILE/END loop to do this per another example I found, but it isn't working. Code below...
var set var=CurrentAnalysis object=(eval(db_default(.system_defaults,"analysis")))
var set var=IP integer_value=1
While condition=((eval(CurrentAnalysis.object_value//".MyResult.time").values[IP])<2.5)
var set var=OneGTimeValue real_value=(eval(CurrentAnalysis.object_value//".MyResult.time").values[IP])
Resurrecting this thread for help with my latest command syntax woes...
This works...
var set var=OneGTimeValue real_value=(VALI(.Model_1.MyAnalysis.MyResult.TIME.values,2.5))
But I would like this to work with the default analysis, what ever that name may be. I've been trying many permutations of something like this to no avail...
var set var=OneGTimeValue real_value=(VALI(".Model_1"//(eval(db_default(.system_defaults,"analysis")))//".MyResult.TIME.values,2.5))
I never seem to know quite where to put the "eval". Open to someone pointing out my obvious mistake...
Resurrecting this thread for help with my latest command syntax woes...
This works...
var set var=OneGTimeValue real_value=(VALI(.Model_1.MyAnalysis.MyResult.TIME.values,2.5))
But I would like this to work with the default analysis, what ever that name may be. I've been trying many permutations of something like this to no avail...
var set var=OneGTimeValue real_value=(VALI(".Model_1"//(eval(db_default(.system_defaults,"analysis")))//".MyResult.TIME.values,2.5))
I never seem to know quite where to put the "eval". Open to someone pointing out my obvious mistake...