Possibility to edit element groups within a Revit Model in Dynamo?

Hi,

I have a Revit Model with multiple groups. Within the groups some Families are placed. I want to change the Families within the groups.

Is there another possibility than ungroup, change (for example with FamilyInstance.ChangeType) and then regroup?

I further want to use the script for Revit Families and their nestes families and therefore the ungrouping could lead to some problems with losing assigned parameters to the groups.

Thank you!

Well, there’s no easy way out.

If you have only one instance of group, it’s pretty easy to ungroup, change elements and group again.

But if you have multiple instances of group, you won’t be able to update all group instances.

But that’s what I know, maybe I’m missing something

Duplicate the group type, append a suffix to the group type’s name, place an instance of the dup, ungroup the dup, modify the dup elements, regroup the elements, set the dup’s type name to the original group name, swap all instances of the original group type with the dup type, delete the original group type.

I don’t recommend automating with groups for a reason, and often recommend steering away from groups as a strategy in favor of other methods to keep automation possible. Until we have a group edit API this will continue to be a pain.

1 Like

… and hope the origin wasn’t modified on the original instances.

2 Likes

This is a VERY good point.

SUCH an important note.

Especially since: its an issue even if the ORIGIN of the original group HASNT been changed, but a NEW origin of the NEW group type would be DIFFERENT. For instance:

  1. Make a Group of a Revit Curtain Wall, where no panels are swapped for Doors (glazing only). The Origin will most likely be near the center of the glazing, or close-ish.
  2. Duplicate that Group Type (edit type > Dupe), and swap a Curtain Panel for a Door. The origin stays where it is from the OG group, even though the Door now makes the centroid of the “group” way farther out, since the door is 3 feet deep.
  3. If you ungroup and regroup the one with the door, it gets an orgin like 18” out of location, because of the door. Even though no one ever “moved” the origin in the original or the duplicated group.

FWIW, for certain types of architecture in Revit, you cant “avoid groups” unless you are using way crappier methods. But i fear we wont ever get real API support for Groups.

2 Likes

I hear you on all of the above (though I disagree with the need for them relative to other options for certain typologies I hear where you are coming from).

I know a few of the developers have said they would like to tackle it but they need the go ahead, and every time someone has to say ‘oh you can’t do that with the API as we don’t have group support’ comes up for an internal add-in we get another internal push. As a result I am certain we will get this eventually, but no idea when that will be.

For mid sized Repetitious Arrangements (Apartments, Patient Rooms, Theaters, Bathrooms, Kitchens, Vertical Circulation banks, Storefront and Curtainwall configurations, Facade panelizations, and more, there really isnt anything else that even comes close. Trying to do all of the above with Links is an absolute joke, and it completely ruins a models ability to have truly unique items throughout the building, from a GUID perspective. Assemblies auto-duplicate themselves when things are different, which makes them a non-starter.

I keep hoping groups will get some real attention eventually, but the brutal fact of the matter is: They cant attach the phase “cloud” or “AI” to Model Groups, so they probably wont ever get real attention.

The fact they are a Revit feature which can’t be used in design automation is actually one of the internal use cases I was referring to above.

This will get off topic fast, but they do in fact have differing GUIDS, just not differing data the way groups can. Hotels, multifamily, and kitchens I have managed with other tools without the need for groups (kitchens in particular are ideal for super families IMO), but I do hear you around the desire for groups. It is a feature which needs love and I’ll continue to advocate when and where I can.

1 Like

Kitchens and bathrooms have walls in them. The moment they have walls, super families don’t work. And super families don’t work anyway, if you’re serious about millwork detailing. The shared nature of nested families completely destroys super families as a concept.

But we can completely agree to disagree.

I would pay money to get API development in model groups though. There is a ton of stuff we would love to do with Dynamo in model groups.

I would like to say that you already pay enough, but I’ll pass on the feedback all the same. :laughing: