Fastest way to know the object's groups

Hi all,

do you know, given an object, which is the fastest way to get the groups it belongs to?

G.

Hi @gennaro,

Try this:

const CRhinoObject* rhino_object = .....;
if (nullptr != rhino_object)
{
  ON_SimpleArray<int> group_indexes;
  const int group_count = rhino_object->Attributes().GetGroupList(group_indexes);
  // TODO...
}

– Dale

thank you!!