I've been using Revit for a while but have been asked to dig deeper into learning to work with formulas, as the guy who used to do this recently left.
I currently have a symbol that has 6 parameters, but only the first 2 will be changeable (on/off) by the user.
Flip Left Right
Flip Up Down
Left Arrow Up
Left Arrow Down
Right Arrow Up
Right Arrow Down
The last four parameters control the graphics and have been placed in the "Other" category. I want only one of the four arrows visible at a time.
What I want to do now is, if someone toggles Flip Left Right, the arrow will appear either on the left or the right of the symbol in the family. If someone toggles Flip Up Down, it will toggle the arrow pointing up or pointing down.
As of right now, I've gotten the arrows to appear either on the left or on the right by using the Flip Left Right toggle, but I keep coming to a road block. The current formula's I'm using are:
Left Arrow Up = not(Flip Left Right)
Left Arrow Down = Left Arrow Up
Right Arrow Up = and(Flip Left Right, not(and(Flip Up Down, Left Arrow Up)))
Right Arrow Down = not(or(Left Arrow Down, Left Arrow Up))
If anyone can figure this out I'd love to reverse engineer the formula used, I attached the family I'm working on as well, it's in Revit 2015.
Edit: managed to figure out after getting some sleep! Formulas used:
not(or(Flip Left Right, Left Arrow Down))
and(Flip Up Down, not(Flip Left Right))
and(Flip Left Right, not(Flip Up Down))
and(Flip Left Right, Flip Up Down)
Edited on: Tue, Oct 3, 2017 at 8:52:28 AM
Edited on: Tue, Oct 3, 2017 at 8:53:02 AM
|