2019 ilogic ClearanceInfo error

2019 ilogic ClearanceInfo error

Anonymous
Not applicable
647 Views
4 Replies
Message 1 of 5

2019 ilogic ClearanceInfo error

Anonymous
Not applicable

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

 

0 Likes
Accepted solutions (1)
648 Views
4 Replies
Replies (4)
Message 2 of 5

chandra.shekar.g
Autodesk Support
Autodesk Support
Accepted solution

@Anonymous,

 

There is already a change request(INVGEN - 13154) with engineering team. I will update you on further progress.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 5

Anonymous
Not applicable

I will await the update, thanks!

0 Likes
Message 4 of 5

Anonymous
Not applicable

@chandra.shekar.g 

 

Is there a way for me to check on the status of this change request? I would like to stay informed when it is released as well.

0 Likes
Message 5 of 5

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous ,

 

Code has been modified to address this issue in the upcoming Inventor release.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network