Create new Model Group and place on same location

Create new Model Group and place on same location

Anonymous
Not applicable
627 Views
1 Reply
Message 1 of 2

Create new Model Group and place on same location

Anonymous
Not applicable

I have a model group, which i want to change element parameters in, i change the model group to another type, get the elements (this other type has different elements), change the params in the elements and group the elements back together. But now i want to place the newly created group on exactly the same location as the old group was.

 

So i stored the location of the previous group, set it on the newly created group and that works. BUT the old group was a mirrored group, and i am totally lost on how to mirror the new group. I am not sure what the Plane param is i need to give in  ```ElementTransformUtils.MirrorElements(this.Document, new List<ElementId>(){newGroup.Id}, new Plane(), false);```

 

Any help would be very appriciated.

 

Basically i want to have everything the same in the new model group as it was before i ungrouped it...

0 Likes
628 Views
1 Reply
Reply (1)
Message 2 of 2

RevitArkitek
Enthusiast
Enthusiast
The plane would be the line you select or draw in the UI in order to mirror it. Create a new plane with a normal and origin. The origin can be the groups location point and then add a normal in the x or y direction. If your group has also been rotated and mirrored then it gets a little tricky because groups don't have a rotation value in its LocationPoint for some reason. So you may have to get to one of the elements in the old group and get its rotation so that you can create your normal (instead of going horizontal/vertical). Hope it helps.
0 Likes