Hi Remy, attached is the Macro.
I've updated the GUI so that there are now options where you can choose if you want to draw a line between the chosen point and the minimum distance point (setting disabled by default), and/or if you want to toggle measurement…