Working to make make expressions check before recalculate

This commit is contained in:
LarsBrubaker 2022-08-20 15:51:59 -07:00
parent dbe3e5f609
commit 70862b1a61
13 changed files with 154 additions and 79 deletions

View file

@ -53,7 +53,8 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
{
foreach (var expression in SheetObject3D.GetActiveExpressions(item, expansion.key, false))
{
expression.Expression = expression.Expression.Replace(expansion.key, SheetObject3D.RetrieveArrayIndex(item, expansion.index).ToString());
var expressionValue = expression.GetExpression(this.RebuildLocked);
expression.Expression = expressionValue.Replace(expansion.key, SheetObject3D.RetrieveArrayIndex(item, expansion.index).ToString());
}
// Also convert index expressions in ComponentObjects to their constants