Reporting Count of Model & Detail Group Types & Instances

Hi all, easy one for you today: how can I simply report the count of:

  • Model Group types
  • Model Group instances
  • Detail Group types
  • Detail Group instances

I found the handy dandy Get All Detail Groups node in Rhythm which works great, is there something similar for model groups?
It may sound like a lazy question, but I’m having trouble filtering down to just model groups after retrieving All Elements of Class: Group. I can Get Category of this list, but I can’t then find the Category to use for the == node. My messy workaround is to convert the categories to a string and filter against that. It works, but surely there is a neater “best practice” way of getting to the result I’m after?

Hi @dan.buckingham ,

I’m not at a pc right now but perhaps List.RemoveIfNot might work if a Model Group object type, as seen by Object.Type, is an unique object type, but I’m not sure if thats the case.

PS: A solution like this is perfectly fine. Don’t fix what aint broken.

2 Likes