SetChangeToConfigurations configurations?

Hi, all,

I'm trying to change an extrusion feature's length in a particular configuration, but I seem to be confused about how SetChangeToConfigurations works.

private bool lengthenExtrusion(Feature extrusionFeature, Component2 swComponent, IConfiguration configToEdit)

        {

            String[] configurationContainer = { configToEdit.Name };

            ExtrudeFeatureData2 extrusion = extrusionFeature.GetDefinition();

            extrusion.AccessSelections(swAssembly, swComponent);

            // try getting the distance between them via the measurement API and setting the extrusion to that length

            double distance;

            swComponent.Select(false);

            fieldOfView.Select(true);

            measure.Calculate(null);

            distance = Math.Sqrt(measure.DeltaX * measure.DeltaX + measure.DeltaY * measure.DeltaY + measure.DeltaZ * measure.DeltaZ);

            extrusion.SetDepth(true, distance);

           extrusionFeature.ModifyDefinition(extrusion, swDoc, swComponent);

            bool success = extrusion.SetChangeToConfigurations((int)swInConfigurationOpts_e.swThisConfiguration, configurationContainer);

            swDoc.EditRebuild3();

            swDoc.ForceRebuild3(true);

            swComponent.Select(false);

            fieldOfView.Select(true);

            measure.Calculate(null);

            swAssembly.EditAssembly();

            swDoc.ClearSelection2(true);

            return !measure.IsIntersect;

        }

The lines of interest are bolded.  The issue I am having is that no matter what the name of configToEdit is, the only configuration that is getting modified is the default configuration, despite the fact that configToEdit is the active configuration when the function is running.

SolidworksApi macros