Yeah sorry, i’ve just quickly hacked this together. If the solid object you select in Rhino is a 10x10x10 cube or sphere with diameter 5 it should work. Otherwise you can change the cylinder_height, either from within the script or in gh.
good.
Btw. one thing about passing the name of the *.gh file i´ve forgotten: If the file path to this *.gh file or the filename itself has spaces within, you better load it using this line:
Grasshopper.OpenDocument( chr(34) + "C:\DrillHole.gh" + chr(34) )
This will put a pair of extra quotes around the grasshopper file.
c.