AnsweredAssumed Answered

What are the different kinds of configurations?

Question asked by Valkyrie Savage on Feb 12, 2013
Latest reply on Feb 13, 2013 by Artem Taturevych

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 "<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();

extrusion.SetDepth(true, 100);

extrusion.SetChangeToConfigurations((int)swINConfugrationOpts_e.swThisConfiguration, {configName});

 

What am I doing wrong?

Outcomes