It absolutely hurts to ask such a dumb question, but I’ve scoured the literature and I can’t find anything that describes, in simple terms, how to ask the user, “How many do you want?” and then get an integer that I can use.
This seems like overkill, but it’s what I’ve gleaned from the RhinoCommon documentation
var gn = new Rhino.Input.Custom.GetNumber( );
gn.SetCommandPrompt("Number of stations");
gn.Get();
RhinoApp.WriteLine("Create {0} stations:", gn.Number());
This last line accurately reports how many stations the user entered, however, I can’t use gn.Number() as an integer when trying to construct that many stations.
I tried declaring gn as an int, but I got massive compile errors.
I also tried
int Stas = 0;
GetInteger("Number of stations", false, Stas);
but it won’t compile.