Hi, try the following rule. I have left you as comments the instructions on how to change the rest of the holes in your list.
There may be problems with Inventor languages, however I have tried this code in Spanish and it worked for me.
I attached a part model in Inv 2018 with the ilogic rule.
Dim oDoc As PartDocument = ThisDoc.Document
Dim oCD As ComponentDefinition = oDoc.ComponentDefinition
Dim oHoleFeature As HoleFeature = oCD.Features.HoleFeatures.Item(1)
'define tap info
oRightHand = True
oThreadStandard = "ISO Metric profile"
'oThreadDes = "M5x0.8"
'oThreadDes = "M10x1.5"
oThreadDes = "M20x2.5"
oClass = "6H"
oFullThread = True
'Set hole As tapped
Dim oTappedInfo As HoleTapInfo = oCD.Features.HoleFeatures.CreateTapInfo(oRightHand, oThreadStandard, oThreadDes, oClass, oFullThread)
oHoleFeature.TapInfo = oTappedInfo
I hope this helps with your problem. regards
Please accept as solution and give likes if applicable.
I am attaching my Upwork profile for specific queries.
Sergio Daniel Suarez
Mechanical Designer
| Upwork Profile | LinkedIn