Everything works fine, as long as I point it to a normal button. It doesnt work specifically with the pickbutton, though. I dont know what you would need the rest of the code for, as it is not relevant to the problem, I believe? Just imagine a pickbutton, if you select geometry it pops up a window telling you to pick a…