Position and rotation of families based on CAD blocks

Good morning, colleagues! I would like your help as I have already made several attempts in vain. I have this routine that we created to identify CAD blocks and convert them into Revit families, placing them in the same position as the blocks. It works very well; however, the families end up rotated incorrectly, in a different rotation position than the block. These families are not linked to any face or wall, and I cannot change the families as the routine is already complete and required a lot of effort. The blocks have the axis at the same point. How can I make the families follow the exact rotation of the blocks? Attached is the routine and some examples of the blocks. I appreciate any help.


Hi @cintiamiranda21,

Replace the FamilyInstance.SetRotation node with the Element SetRotation node from the Genius Loci package and see if it is better.

It could be a matter of clockwise or counter clockwise rotation.

2 Likes

Wow… easy! It worked. Thanks!