Message 1 of 5

Not applicable
11-22-2018
01:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Inventor Professional 2019 64 bit on Windows 10
While trying to access the ClearanceInfo method with ilogic using the following code to extract the fastener size string, Inventor 2019 crashes. Any attempt to access the FitType, Size, Standard, Type, etc. causes Inventor to close immediately.
SyntaxEditor Code Snippet
Dim oDoc As PartDocument oDoc = ThisApplication.ActiveDocument Dim oDef As PartComponentDefinition oDef = oDoc.ComponentDefinition Dim oHole As HoleFeature Dim oHoles As HoleFeatures oHoles = oDef.Features.HoleFeatures If oHoles.Count > 0 Then For Each oHole In oHoles If oHole.IsClearanceHole = True Then Dim oFastener As String oFastener = oHole.ClearanceInfo.FastenerSize End If Next End If
Solved! Go to Solution.