Hi Mathew,
It's not clear from your screenshot what mapping criteria you are using. Please make sure that there are not properties whose values are changed from run to run.
Let's try modifying your code a bit. As far as I understand, the Scale and Model items are expended when you click them, right? Is the problematic text box located inside this expandable area? Let's add the
WaitAliasChild method to wait until the object is fully loaded after appearing on the screen and to obtain it:
ultraGridCLT = panelLeft.activeControl.m_itemPanel.CltGrid2.ItemGrid.ultraGrid1;
ultraGridCLT.ClickCellXY(0, "Model", 104, 12);
ultraGridCLT.ClickCellXY(0, "Scale", 66, 8);
ultraGridCLT.Refresh(); ultraGridCLT.RefreshMappingInfo();
textCLT = ultraGridCLT.WaitAliasChild("ultraGrid1_EmbeddableTextBox", 4000);
//set the scale
if (textCLT.Exists)
textCLT.SetText("10");
Does this work?