- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it possible to Get / Set the FastenerStandard with the 2019 API?
A test below still fails with a Part Document Active and two clearance holes.
Public Sub holeTest19()
Dim aDoc As PartDocument
Set aDoc = ThisApplication.ActiveDocument
Dim pFeat As PartFeature
For Each pFeat In aDoc.ComponentDefinition.Features
If TypeOf pFeat Is HoleFeature Then
Dim hFeature As HoleFeature
Set hFeature = pFeat
Dim cInfo As HoleClearanceInfo
Set cInfo = hFeature.ClearanceInfo
Debug.Print (pFeat.Name)
'Debug.Print (cInfo.FastenerStandard) '<<FAILS
Debug.Print (cInfo.FastenerSize)
Debug.Print (cInfo.FastenerType)
Debug.Print (cInfo.FastenerFitType)
End If
Next
End Sub
Solved! Go to Solution.
Link copied