I use rs.GetString
to get a new value for the maximum data limit used when coloring a pointcloud. The prompt in the Command window looks like this just as I am about to press Enter:
but after Enter is pressed the prompt is still there even though the new value was successfully read and used to change the max data limit for coloring:
If I press Enter again to clear the prompt, this cancels my Eto form that was launched like this:
# Create the UI data.
data = DroneMapsData()
# Make the UI object and pass it the data to change.
dialog = DroneMapsUI(data)
# Show the UI form.
result = UI.EtoExtensions.ShowSemiModal(dialog, RhinoDoc.ActiveDoc, UI.RhinoEtoApp.MainWindow)
If I just leave the extra prompt in the Command window it looks very confusing for my users.
How do I get rid of this prompt without my Eto form being cancelled?
In Rhino 6 I successfully cleared the prompt from the Command line by using:
rs.Command('NoEcho EnterEnd')
after the pointcloud had been colored and a doc.Views.Redraw()
was completed. But in Rhino 7 this also cancels the Eto form. Why?
Regards,
Terry.