Using the code below i’m getting a different count for selection.It looks like the missing obj is the one with property Name = “reference”. So how can i get the same result from GetSelectedObjects? Or how can i select that “reference” object?
private void OnSelectionObjects(object sender, Rhino.DocObjects.RhinoObjectSelectionEventArgs e)
{
IEnumerable<Rhino.DocObjects.RhinoObject> selectedRhinoObjs = Rhino.RhinoDoc.ActiveDoc.Objects.GetSelectedObjects(true, true);
int countObjects = selectedRhinoObjs.Count();
int countObjectsFromParameter = e.RhinoObjects.Count();
}