I have a problem with my C # macro ....
When I change dimension value in derived configuration, I use "swSetValue_InThisConfiguration" but he still "Link to Parent Configuration"... How to fix that?
swConfiguration = swConfigurationMgr.AddConfiguration(name, "", name, 1, "", "");
swConfiguration.Select2(true, null);
(swModel.Parameter("d1@BaseS") as Dimension).SetValue2(part["d2"], (int)swSetValueInConfiguration_e.swSetValue_InThisConfiguration);
(swModel.Parameter("d2@BaseS") as Dimension).SetValue2(part["d2"], (int)swSetValueInConfiguration_e.swSetValue_InThisConfiguration);
DimensionTolerance swDimensionTolerance = (DimensionTolerance)(swModel.Parameter("d2@BaseS") as Dimension).Tolerance;
swDimensionTolerance.Type = (int)swTolType_e.swTolBILAT;
swDimensionTolerance.SetValues2(part["d2_tol_max"] / 1000, part["d2_tol_min"] / 1000, (int)swSetValueInConfiguration_e.swSetValue_InThisConfiguration, "");
swModel.ClearSelection2(true);
swDerivConfiguration = swConfigurationMgr.AddConfiguration(swConfiguration.Name + " <как смонтированный>", "", "", 1, swConfiguration.Name, "");
swDerivConfiguration.Select2(true, null);
(swModel.Parameter("d1@BaseS") as Dimension).SetValue2(part["d1"], (int)swSetValueInConfiguration_e.swSetValue_InThisConfiguration);
SolidworksApi macros