Using JSL, how to use Add Graphics Script with a variable number of items to add to a display?
Oct 12, 2016 4:37 PM(5054 views)
I need to add several graphic items of the same type to an existing display box, the problem is that I do not know in advance how many of these items I need to add. If I do not indicate the order in which I want the items added by not including the 'order' argument, and include the Add Graphics Script in a loop, only the last item in the loop shows in the display box. If I replace the 'order' argument for a variable, and evaluate the variable in the loop, I get an error message that the argument is invalid. Am I evaluating the argument incorrectly? I had tried Eval(Substitute(Expr...) but did not work. What else can be done? Please help.