Setting conditional parameters with formulas

Setting conditional parameters with formulas

costas92
Explorer Explorer
558 Views
2 Replies
Message 1 of 3

Setting conditional parameters with formulas

costas92
Explorer
Explorer

Hello all,

 

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 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. I already have the last four parameters set to control the visibility of the arrows.

 

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. 

 

I've been toying around with using =if(or( statements, but I can't manage to wrap my head around it completely just yet. Any advice would be appreciated, thank you!

 

0 Likes
Accepted solutions (1)
559 Views
2 Replies
Replies (2)
Message 2 of 3

costas92
Explorer
Explorer

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))

 

I attached the file I'm working with as well

0 Likes
Message 3 of 3

costas92
Explorer
Explorer
Accepted solution

Managed to figure it out after getting some sleep! The four 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)

0 Likes