Column Stitcher: User Select - action - more user select - action process

Hello,

I am just beginning this process, and in so am doing some research. Is it possible to have a graph that allows a user to select 2 objects, do some work on them, then select 2 more, do that same work, etc?

I am attempting to make a script that allows for the user to select two columns that are stacked, Dynamo will analyze and find the lowest and highest levels and their offsets, and create one column in place of the two. I am fairly sure I can get that to work; however, I need them, after that has happened, to be able to do it again, and again, and again until they hit “escape” or some other way to end the script.

It does not seem acceptable to have to click the Dynamo Player “play” button before doing it every time.

So, simply, I would like to start a script, user select items -> work on those items, then user select more items -> do work, etc. until the user finishes the session. Is this even possible?

Dynamo 1.3.1.0; Revit 2017

Thank you.