09-15-2021
09:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-15-2021
09:56 AM
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)
.
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)