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

Here is a very simplistic example of an iLogic rule to change an existing hole feature's clearance hole size, by changing its fastener size.

Dim oPDoc As PartDocument = ThisApplication.ActiveDocument
Dim oPDef As PartComponentDefinition = oPDoc.ComponentDefinition
Dim oHole As HoleFeature = oPDef.Features.HoleFeatures.Item(1)
If oHole.IsClearanceHole Then
	'oHole.ClearanceInfo.SetClearanceInfo("ISO","Hex Head Cap Screw ISO 24017", "M10", FastenerFitType.kNormalFitType)
	oHole.ClearanceInfo.FastenerSize = "M10"
End If

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) :thumbs_up:.

If you want and have time, I would appreciate your Vote(s) for My IDEAS :light_bulb:or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)