Hello,
I regularly meet this issue that I want to edit let’s say 100 elements but some are in groups. Revit wants to ungroup the group to make changes.
So let’s put a simple example here, I have 10 lines, 2x3 is in a group (group has 2 instance). I need to rotate each line 5 degree. If there is no group it is a rather simple task, rotate the geometry then Element.SetLocation. But now that I have a group with two instances it is not that simple.
Obviously the above example is oversimplified, here is a screenshot what I’m dealing with, essentially the same problem.
I was afraid of this answer. What you see on the screenshot is 4000 area boundary lines, probably 3000 grouped. So majority is “manual” which is what I want to avoid. Of course, dynamo is not running in group edit mode.
Dynamo cannot run in group edit mode, inbuilt limitation. I’m currently experimenting with developing an approach involving group duplication and editability of single instance groups in Python but it’s still under development - has a lot of quirks.
If i solve it I’ll likely make a video about it on my YT channel down the line.
Worth putting some votes into an official idea station posting, on the Revit roadmap, or starting a topic around the limitations of groups in the official Revit API forum. Otherwise we’ll keep having to deal with work-arounds.
You can edit a group element outside of group edit mode if it is in the only placed group.
So if you:
Duplicate the group to make a new ‘temporary’ one
Swap all the other group instances to the new group type
Edit the element in the one remaining
Swap the others back
Delete the ‘temporary’ group.
And for those interested, I have a node in Rhythm that allows group creation with a defined origin using the hack I talked about on the live stream above.