I need iterate through the configurations in an active part/assembly, delete each of the suppressed features - saving separate files for each configuration.
My code correctly deletes all suppressed features - except folders containing those features. Here's the important code:
Part.ClearSelection Set Feature = Part.FirstFeature While Not Feature Is Nothing Set subFeat = Feature.GetFirstSubFeature While Not subFeat Is Nothing If subFeat.IsSuppressed Then subFeat.Select (True) Set subFeat = subFeat.GetNextSubFeature Wend If Feature.IsSuppressed Then Feature.Select (True) Set Feature = Feature.GetNextFeature() Wend Part.DeleteSelection (False) Call SaveFile(Part, config)
What am I missing? Why wouldn't folders be deleted as features? Is there a dedicated method which deals with folder creation/deletion that I can't find?