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?
You can manually do it by right clicking on feature, select feature properties and set suppressed for all configuration.
With API, you need to traverse thru all configurations.