Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to toggle between different Hole Types via an iLogic Form. I have set up a multi-value parameter to make these selections. However, I am receiving an errors initially when I try to select a "TAPPED" or "TAPER TAPPED" selection. Can anyone help me out? Below is what I have so far.
Dim oPartDoc As PartDocument
oPartDoc = ThisDoc.Document
Dim oCompDef As PartComponentDefinition
oCompDef = oPartDoc.ComponentDefinition
Dim oHoleFeature As HoleFeature
oHoleFeature = oPartDoc.ComponentDefinition.Features.HoleFeatures.Item("Hole1")
Dim oTappedHole1 As HoleTapInfo
oTappedHole1 = oCompDef.Features.HoleFeatures.CreateTapInfo(True, "ANSI Unified Screw Threads", "1/4-20 UNC", "2B", True)
Dim oTappedHole2 As TaperedThreadInfo
oTappedHole2 = oCompDef.Features.HoleFeatures.CreateTaperedTapInfo(True, "NPT", "1/4-18 NPT")
Select Case HoleType
Case "THRU"
oHoleFeature.Tapped = False
oHoleFeature.TapInfo = Nothing
Case "BLIND"
oHoleFeature.Tapped = False
oHoleFeature.TapInfo = Nothing
Case "TAPPED"
oHoleFeature.Tapped = True
oHoleFeature.TapInfo = oTappedHole1
Case "TAPER TAPPED"
oHoleFeature.Tapped = True
oHoleFeature.TapInfo = oTappedHole2
End Select
Solved! Go to Solution.