Selection within a command



I am looking to make a selection during a command by using a script (python ideally). For example, suppose i run a command that takes a point as input. how do i script the selection of the point, and allow the command to continue?

I tried a naive approach of making a document with one point in it, running the command, and then typing SELPT, but this didn’t work.



will allow you to click a point.

may be used to select a pre-existing point in a document.

(there are some other ways as well)