Good mornign all,
is it possible to get the rotation of a Detil Group (to later be replaced with a Family)
Thanks
Good mornign all,
is it possible to get the rotation of a Detil Group (to later be replaced with a Family)
Thanks
Short answer, no as groups have no coordinate information. Long answer is yes with a but; you can use one of the elements in the group to determine the orientation of the group, but this involves:
Either way its an imperfect art.
I’m using the Group.Members (from Clokwork) to get an element but it’s tricky since that element can be… anything
So yes, it’s an art
Still no functionality in Revit to retrieve rotation of groups.
An idea is to make a dummy-group.
Start transaction
Mak a dummy-group and add an modelline to the group.
Replace the orignal group with the dummy group.
Get the rotation of the modelline
unroll the transaction
This might be (slightly) faster then the current Solution.
you may use the group origin and one of the boundingbox’s points.