Message 1 of 7
Inventor Close when I run the code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am writing a code trying to read the fastener size of the hole feature, the code runs well but after displaying the message, inventor crushed and suddenly close.
I recurred this over and over and got the same reaction
you can see the video of what happening here :
in case you can not see the code
Sub main() Dim oDoc As PartDocument Set oDoc = ThisApplication.ActiveDocument Dim oHoleF As HoleFeatures Set oHoleF = oDoc.ComponentDefinition.Features.HoleFeatures MsgBox (oHoleF.Item(3).ClearanceInfo.FastenerSize) End Sub
Thanks