I know this looks familiar, but I have another twist to it...
Dim oFeature As Inventor.PartFeature
For Each oFeature In oPartDoc.ComponentDefinition.Features
If oFeature.Tapped Then
If oFeature.TapInfo.FullTapDepth Then
ThreadDepth = " TapThru"
else
ThreadDepth = ""
end if
Else
more code...
End if
Next oFeature
The problem I have is that when I have an NPT tapped hole, I get an error 'FullTapDepth' on type 'IRxTaperedThreadInfo' not found. It fails at the If statement.
So the Direct Questions is how do I get to the Tapered Tap Information?
I'm having a terrible struggle with this because the intellisense doesn't recognize anything.
Also, this Select Case gets a warning while in an AddIn but it doesn't in a stand alone app.
Warning 1 Operands of type Object used in expressions for 'Select', 'Case' statements; runtime errors could occur.
Select Case oFeature.HoleType
Case Is = Inventor.HoleTypeEnum.kDrilledHole
Thx in advance for any assistnace...
AllenG
Edited by: agager@atferrell.com on Jan 9, 2009 2:04 PM