Message 1 of 7
Suppress Feature using a Range

Not applicable
09-04-2009
11:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need to be able to suppress a feature in a part using a range. I've looked at the property of a feature and I can only select a single operation (>, <, etc.). I've tried writing some code but I'm getting an error. I would appreciate any help on the code or another way to suppress a feature in a range.
Public Function SupHole(CASE_HT As Double) As Double
CASE_HT = CASE_HT / 2.54
Dim oDoc As PartDocument
Dim oFeat As PartFeature
Set oFeat = oDoc.ComponentDefinition.Features("Hole22")
If CASE_HT > 109 And CASE_HT < 89 Then
oFeat.Suppressed = True
End If
End Function
Thanks for any help
Chris
Public Function SupHole(CASE_HT As Double) As Double
CASE_HT = CASE_HT / 2.54
Dim oDoc As PartDocument
Dim oFeat As PartFeature
Set oFeat = oDoc.ComponentDefinition.Features("Hole22")
If CASE_HT > 109 And CASE_HT < 89 Then
oFeat.Suppressed = True
End If
End Function
Thanks for any help
Chris