I'm not seeing a need to restart the pick code. You can just update the filter based on the dropdown. It even works while you are in pick mode. ( rollout rollPickTest "Pick Test" ( local ddlClass = shape fn PickFilter obj = superclassof obj == ddlClass dropdownlist ddlClassPick "Pick Type" items:#("Shape", "Geometry")…
Another solution, no timers and no "dirty" UIAccessor. I used a checkbutton instead of a pickbutton, "outsource" the picking to a function. This way you can call the function from anywhere. I added another button to demonstrate. "mybutton" is optional parameter, so you can imitate the pressed button state. The filter…
Ok, I have to excuse, you are right it doesn't work if it's called from within the pickbutton picked function. *Whoops* I guess it's one of those things where you have to use a dirty workaround, in this case a timer. Don't set the timer interval too low or it won't work properly. I call this dirty because timers can be…