public static double getMateValue(Component2 component) { Feature mate = swAssembly.FeatureByName(component.Name2 + "-distance"); if (mate == null) { return(-1); } IDisplayDimension dispDim = (IDisplayDimension)mate.GetFirstDisplayDimension(); IDimension dim = dispDim.IGetDimension(); double[] someRet = dim.GetSystemValue3((int)swSetValueInConfiguration_e.swSetValue_InSpecificConfigurations, new string[] { component.ReferencedConfiguration }); return(someRet[0]); }