i’m having trouble creating an if statement for the rest of my script.
Since i discoverd a bug in revit related to the elevation value of beams (wrong value if you use the z Offset Value in the properties of the beam) i need to write all the z offset values automaticly in the parameters “start and end level offset”. Made a Screencast of it.
So i build tow easy scripts. The first writs the z offset value in the parameter for start and end level offset and the second sets the z Offset Value to 0.
But if i run the first script again because someone didnt know about the bug it changes all the right start and end level offsets to 0. So i tought i can build some kind of if statement like:
IF(z offset Value = 0 / then set z offset value to 0 or do nothing / otherwise set start and end level voffset to z offset value.
But thats are just my thoughts and i dont know how to build it. I think i dont get the if statements right.
Sorry for my english. I hope you can help and understand what i try to do.
Thats what i came up with so far. But i can’t write bothe start and end offset values at the same time and i’m missing the part where the z offset value gets set to 0 after all the other stuff is done.
What if someone has filled in the start/end level offset with a value and put in a Z offset then the above will make the framing members be in the incorrect level.
I therefore suggest you to do something as the below image as this will get all values add them together then apply the new values accordingly.
Also a secondary point when you say bug in the elevation tag, have you looked at changing the elevation tag from actual to top by selecting the elevation tag then changing this from the drop down?
As this works for me to include the z offset value within the reported value.
I don’t understand. In my screencast i have serveral beams. I changed the hight with the z Offset Value and with the start and end level offset. The spot elevations are all correct but the annotation tag for beams takes the parameters “Elevation at top” and “elevation at bottom”. These perameters are not correct if you change the hight of the beam with the z Offset Value.
I already reported this to autodesk and got the answer: Known and will be changed in futur updates.
We could reproduce this behavior in Revit 2016 and 2017 (latest updates).
But back to topic:
@Nico_Stegeman
Yes your right. Maybe withe a code node but i have no skills in codewriting.
The IF node wants to know what to do if the result is true or false but how? Or is my way of thinking totaly wrong on this?
@Brendan_Cassidy
Havent thought of the option that someone hast already used the start and end level offset. I build the script like you did except for the last part with the list of zeros. I don’t understand why you did it like this. Isn’t just a Number = 0 enough?