Hello,
I encounter a problem in selecting the objects with two steps. First, I want to select on or more objects. Then select another one object. A simple code is below.
CRhinoGetObject go;
go.SetCommandPrompt(L"Select one or more Curves");
go.GetObjects(1, 0);
if (go.CommandResult() != CRhinoCommand::success)
return go.CommandResult();
CRhinoGetObject go0;
go0.SetCommandPrompt(L"Select one Curve");
go0.GetObjects(1, 1);
if (go0.CommandResult() != CRhinoCommand::success)
return go0.CommandResult();
However, if I selected more than one object firstly, this code run well. However, if only one object is selected in the first step, the second step cannot be executed.
I have tested many times and have no idea on this problem. Maybe it is a possible bug. Many thanks for any suggestion.