Hi all!
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 "
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();
extrusion.SetDepth(true, 100);
extrusion.SetChangeToConfigurations((int)swINConfugrationOpts_e.swThisConfiguration, {configName});
What am I doing wrong?
SolidworksApi macros