Anuncios
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!

Search/Filter for Intances of '1' group

To be honest I'm not a fan of groups, so please forgive me!

 

Would love to have the function which allows me to search for groups (detail or model) that have only 1 instance, so I can ungroup and purge the group.

 

Work with large models and when our users use groups to lazily to families it make my blood boil!

 

Groups do have a purpose, I find most users miss use the groups and treat them like CAD groups.... I call it BAD Revit!

 

Sorry got the rant! Emoticono loco

 

 

Comentarios
Advisor
Advisor

Since it just came out today, I think I'm allowed to say this:

In 2018 you can schedule Groups and one of the things you can schedule is Count.

 

So you can mark this one as completed.

Anonymous

Fantastic news.... shame about my legacy projects!

Advisor
Advisor

Why not to find such group types using existing functionality?

 

            var collector = new FilteredElementCollector(doc);

            var singleGroupGroupTypes = collector
                .OfClass(typeof (GroupType))
                .Cast<GroupType>()
                .Where(x => x.Groups.Size == 1)
                .ToList();