Hi Stefano,
While I think a script could be written to do what it sounds like you're asking for, it is pretty quick to do it by hand using MoI's normal tools. Briefly, create the unthreaded fastener using clearance diameters and then use the Construct Boolean Difference tool to cut the appropriate hole, using the fastener as the cutting object. As you're new to MoI, I would encourage you to spend a little more time getting the hang of the tools already provided as you'll then develop an appreciation for just how quick and precise the UI already is. I think one of the tricks for learning MoI is unlearning some of the assumptions about workflow from other tools.
If you are also interested in threaded parts, you might check out Max's NutsAndBolts script http://moi.maxsm.net/files/scripts/NutsAndBolts.v.0.96.2015.06.22.zip which does a great job of creating standard hex-headed fasteners, but it may do more than you're asking for at this time.
--Larry
|