Hi @johnster100. Changing hole feature specs by iLogic can be a pain, because they have become so dynamic, and a lot of the specs shown/available in them is being sourced from spreadsheet files. In some situations, if you attempt to change a spec to something that's not available within the spreadsheet, it may give an error too. There are some tricky properties value types involved in some of these scenarios that you may have to deal with. In the case of a clearance hole, the HoleFeature has a property called ClearanceInfo that returns a HoleClearanceInfo object we will need to deal with. It is simpler to deal with than some of the other object types. Once you're at this point, you can either use the SetClearanceInfo method, or just directly specify a new value for the FastenerSize property. However, as mentioned before, the value you specify must be one that is available in the spreadsheet, while the other settings are the way they are. The spreadsheet file is called "clearance.xls", and it is one of the standard files installed with Inventor, under the '\Design Data\XLS\en-us\ directory.
for example:
C:\Users\Public\Documents\Autodesk\Inventor 2022\Design Data\XLS\en-US\clearance.xls
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.
If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS
Wesley Crihfield

(Not an Autodesk Employee)