Gumball did not appear after selecting the object?

Hi everyone!
Why didn’t the gumball appear after selecting this object and completing the selection?

private void SelectByBox()
 {
     var get = new GetObject();
     get.SetCommandPrompt("selectedObjects");
     get.SetCustomGeometryFilter(ConstructFilter);
     get.GetMultiple(1, 0);

     var objects = get.Objects();
     if (objects != null)
     {
         foreach (var item in objects)
         {
             _service.Doc.Objects.Select(item);
         }
     }
 }

I have to execute the following code to re-display the gumball . Is there a better way?

 public static void ActivateGumball()
 {
     Rhino.RhinoApp.RunScript("'SetRedrawOff", false);
     RhinoDoc.ActiveDoc.Views.Redraw();
     Rhino.RhinoApp.RunScript("'SetRedrawOn", false);
 }

You’ll need to add 2 more true’s into your select to make sure it highlights in Rhino.

             _service.Doc.Objects.Select(item, true, true);

image
https://developer.rhino3d.com/api/rhinocommon/rhino.docobjects.tables.objecttable/select

thanks your reply, but I followed your instructions, but the gumball still didn’t appear.

This might sound daft, but I’d kick myself if I didn’t check.
Is your gumball turned on?

yes ,it’s on ,

@csykes