AnsweredAssumed Answered

How do I Suppress a Feature in All Configurations of a Part?

Question asked by Shawn Tracey on Sep 16, 2015
Latest reply on Sep 16, 2015 by Shawn Tracey

So I am re-writing code that will suppress a feature in all configurations of a part instead of just suppressing the feature in the active configuration.

 

The code I am starting out with to suppress a feature called "Nozzle Hole" in a part is as below:

boolstatus = swModel.Extension.SelectByID2("Nozzle Hole", "BODYFEATURE", 0, 0, 0, False, 0, Nothing, 1)

swModel.EditSuppress2

swModel.ClearSelection2 True

 

This works great for suppressing the active configuration, but not all configurations like I need.

 

Any idea's how to change this code to suppress "Nozzle Hole" in all configurations?

Outcomes