I am trying to programmatically modify some components of an assembly, and I can select them and create "configurations". However, these "configurations" don't seem to actually be configurations of the part, in the sense that when I activate them they still reference the "<default>" configuration and thus modifying them modifies all instances of the part.
My code that creates these "configurations":
swDoc.AddConfiguration2(configName, "automatically generated configuration", "", true, false, false, true, 256);
swComponent.ReferencedConfiguration = configName;
and later with the extrusions:
ExtrudeFeatureData2 extrusion = feature.GetDefinition();
What am I doing wrong?