I am still using this code, as well as a bit afterwards to handle the timing: //+---------------------------------------------- UserInterface ui = (UserInterface)app.UserInterface; ui.Panes["Project"].ControlSet["TreeViewComponents"].Text = "Contours_50cm 2"; ui.InvokeCommand("ViewProjectCopy", "pane:Project"); ui.InvokeCommand("ViewProjectPasteAsSurface", "pane:Project"); UserInterfaceDialog dlg = (UserInterfaceDialog)ui.ModalDialog; UserInterfaceControlSet controlset = (UserInterfaceControlSet)dlg.ControlSet; dlg.ControlSet["ComboBoxHeight"].Text = "Altitude"; dlg.ControlSet["TextBoxPixelSizeX"].Text = "2"; dlg.ControlSet["TextBoxPixelSizeY"].Text = "2"; dlg.ControlSet["ComboBoxMethod"].Text = "Triangulation adjusted for contours"; dlg.Accept(); //+--------------------------------------------- app.MessageBox("Please wait for the copy to catch up. The loader will resume shortly.",null); delay(25); //this was originally 5, changed to allow stuff to catch up int Proceed = 0; //if we can find it, loop, else exit loop while(Proceed==0) { if((string)ui.ModalDialog.Caption!="Paste As Surface"){Proceed=1;} } comps.Remove(theDrawing); This task is on the back-burner for me at the moment in any case, and I'll look into Manifold 9 once I've got a few others off my plate, thanks.
|