Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Hello,

 

I think you need to create a new ClearanceInfo...

 

you should be able to do this with:

 

Dim mhtns As ModelHoleThreadNotes = oPartCompDef.ModelAnnotations.ModelHoleThreadNotes

Dim newholeclinfo As HoleClearanceInfo = Nothing
 newholeclinfo = mhtns.CreateClearanceInfo("DIN" , "Countersunk Flat Head Screw DIN EN ISO 2009" , "M6")

 

and then replace the complete HoleClearanceInfo

 

but if you try to get the holeClearanceinfo.FastenerStandard from the hole you already created it gives an error....

and also creating the new one does not work.

 

with me trying to figure this out, my Inventor (2018.2.3) is crashing constantly, so I gues Autodesk have to fix things

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan