private static void replaceAgeomXAeffFactorWithAeffIn(ExplicitFormula formula) { if (!formula.FormulaString.Contains("Ageom * AeffFactor") && !formula.FormulaString.Contains("Ageom*AeffFactor")) { return; } if (formula.IsNamed("PARAM_EffectiveSurfaceArea")) { return; } formula.FormulaString = formula.FormulaString.Replace("Ageom * AeffFactor", "Aeff").Replace("Ageom*AeffFactor", "Aeff"); var objectPath = formula.ObjectPaths.Find(x => x.Alias == "Ageom"); objectPath.Remove(GEOMETRIC_SURFACE_AREA); objectPath.Add(EFFECTIVE_SURFACE_AREA); objectPath.Alias = "Aeff"; var aeffFactorObjectPath = formula.ObjectPaths.Find(x => x.Alias == "AeffFactor"); formula.RemoveObjectPath(aeffFactorObjectPath); }