Suppress feature on error

I have a sheet metal part with an extruded cut. When the part size changes, this cut may or may not intersect the part. Does anyone know how to suppress the cut feature when it does not intersect the part?

SolidworksApi macros
Answers 6
SF
SF 2010-01-05 Best Answer
Could you post a picture so we can better understand your problem?
SF
SF 2010-01-05
Try a design table that uses equations on the geometry to determine if it is intersecting the part (if part size - location of cut from edge > 0 then unsuppress) . . . =IF(D1@SKETCH3 > D2@SKETCH5, "U", "S") to control the suppression state of the feature.
SF
SF 2010-01-05
I turned the sketch on (Purple) so that you can see what is going on. I also made the part blue. Sometimes this notch cut falls on the part and other times it doesn't. It is normal either way, but I dont want the user to think something is wrong. If I could somehow trap the error "The intended cut does not intersect the model". Error=suppress / No Error=unsuppress. Any help is greatly appreciated.
SF
SF 2010-01-05
The problem with using a design table is that this is a row of notches spaced every 12".
SF
SF 2010-01-05
Since you are using a design table, try making one cut and pattern it. Then you can add or subtract instances of that pattern depending on the length of your part.
SF
SF 2010-01-05

if you don't want to work with a design table, you can do the same with the cut and pattern by using the equation editor.

PatternQuantity = int(length/12)