Macro - object creation using existing selection for required inputs

Trying to set up a macro to create a circle using the 2Point method. This requires 2 clicks in the creation process to define the end points of the circle’s diameter.

I would like to be able to pre-select 2 point objects and have the macro use the point object positions as the 2 required inputs.

Is this possible in a macro? If not, is there a simple way to do this in a script? I am not a developer so simplicity is key.

Thanks for any tips!

Hi @Jack_Billet,

Try the attached Python script, which works in Rhino 7.

circle_two_point.py (698 Bytes)

To use, just run the RunPythonScript command.

Also, if you’re willing to turn on Point object snap, then a command macro like this might suffice.

_Circle _2Point _Pause _Pause

– Dale

@Dale_Fugier,

A belated thank you for your script. It works great! Much appreciated.

Jack