I am trying to develop a script that can detect all those walls slightly out of axis from a reference line and change them aligning to that reference.
I could not get a method that give me the possibility to align two element.
Can someone suggest me a way to align 2 elements using the Revit API?
At the beginning I thought just rotating the wall by a specific value could be enough but, once created the script, I figured out that it wasn’t work. It gave me back an error saying “Element(s) reversed”, one of those errors that force you to delete the element or cancel the operation.