This is the code leading up to the failure:
panelLeft.ultraSplitter_Left.Drag(2, 137, 410, 31);
ultraGridCLT = panelLeft.activeControl.m_itemPanel.CltGrid2.ItemGrid.ultraGrid1;
ultraGridCLT.ClickCellXY(0, "Model", 104, 12);
ultraGridCLT.ClickCellXY(0, "Scale", 66, 8);
textCLT = ultraGridCLT.ultraGrid1_EmbeddableTextBox;
//set the scale
textCLT.SetText("10"); <----this is the failure line
The additional info is in the attached images and so is the tree name mapping.
This is the object spy for the box i want
Aliases.ScenarioEditor.MainForm.outer_splitContainer.SplitterPanel.sceneControlsPanel.innerPanel_left.activeControl.m_itemPanel.CltGrid2.ItemGrid.ultraGrid1.ultraGrid1_EmbeddableTextBox
If i run this code stand alone it works but when i run this before it, then it fails:
ultraGridViewpoint = viewGrid.panel1.ItemGrid.ultraGrid1;
ultraGridViewpoint.Click(15, 75);
ultraGridViewpoint.Expand(2);
viewText = ultraGridViewpoint.ultraGrid1_EmbeddableTextBox;
ultraGridViewpoint.wChildView(2, "Position").ClickCellXY(0, "Coordinates", 61, 14);
viewText.SetText("4698396.875547 4313247.721288 -40566.849034");
ultraGridViewpoint.wChildView(2, "Position").ClickCellXY(0, "Yaw", 4, 7);
viewText.SetText("223.4");
ultraGridViewpoint.wChildView(2, "Position").ClickCellXY(0, "Pitch", 44, 9);
viewText.SetText("-23.8");
You can see in the name mapping the viewgrid and the cltgrid info. I am kind of stumped how they can interfere with each other? Maybe i am doing something dumb and naive though, i am very new to this. I hate that it works stand alone but doesnt in sequence so i think the key is in there somewhere.
EDIT:
i see the attached file is to small to read so
Tested object:
Aliases.ScenarioEditor.MainForm.outer_splitContainer.SplitterPanel.sceneControlsPanel.innerPanel_left.activeControl.m_itemPanel.CltGrid2.ItemGrid.ultraGrid1.ultraGrid1_EmbeddableTextBox
(Sys.Process("ScenarioEditor").WinFormsObject("MainForm").WinFormsObject("outer_splitContainer").WinFormsObject("SplitterPanel", "", 2).WinFormsObject("sceneControlsPanel").WinFormsObject("innerPanel_left").WinFormsObject("activeControl").WinFormsObject("m_itemPanel").WinFormsObject("CltGrid", "", 4).WinFormsObject("ItemGrid").WinFormsObject("ultraGrid1").WinFormsObject("ultraGrid1_EmbeddableTextBox"))