I need to change the level from many elements in the project while keeping their exact location.
So, I made a script to select elements and read the base offset value, calculate the new offset and set the new level and base offset parameters.
So far so good. Only issue is that if both parameters are not changed at the same time (in the same transaction or when pressing apply in the revit UI) dynamo will change one first and then the other with the consequent move of the element during the process (and lost of dimensions, hosted elements, rooms not enclosed, etc.).
I can think about using python or a macro to start a transaction and doing both changes in the same transaction, instead of sequentially in dynamo, but that goes beyond my abilities / time to learn at the moment.
Is there a way to get both changes at the same time with dynamo?