Can i finish PickElementsByRectangle() with ESC


I want to select elements in revit using a selection box.
Next i want to finish selecting with the ESC button.
Is it possible to do this instead of clicking the Finish button?

Maybe this can help?

When user hits ESC, then exception is thrown.
Above there is the example how to deal with it.

1 Like

This does finish the command but it does not collect the elements i have already selected.
I think it is just not possible :frowning: