Announcement

Collapse
No announcement yet.

formulas in revit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    formulas in revit

    Hi all,

    I need a bit of help with a formula in Revit,


    it is

    if x is on but y is off then turn on z


    what I have so far

    if ( or (Transom = not , Mullion = not) , <False> , <True>)

    Please help its the last formula to complete the window

    Thanks

    #2
    if ( or (Transom = not , Mullion = not) , <False> , <True>)
    <false> should be a false statement: 1=2
    <true> should be a true statement: 1=1

    https://www.revitforum.org/tutorials...day-usage.html
    Revit for newbies - A starting point for RFO


    chad
    BEER: Better, Efficient, Elegant, Repeatable.

    Comment


      #3
      thanks I will give that a go

      Comment


        #4
        Originally posted by PeterMash View Post

        if x is on but y is off then turn on z

        and(X, not(Y))
        Developer at Anguleris BIMsmith Marketplace.
        Previously at Sumex Design for ARCAT.com

        Comment


          #5
          Thanks for your help I'm still missing something though, it works if I'm asking if the transom is on "if(Transom, 1=2,1=1)" but as soon as I try to ask if the mullion is off it wont do it.

          attached is a screen shot showing the formula and the error message. would be gratefully for any more help.

          I am using Revit 14 if that makes and difference.

          Attached Files

          Comment


            #6
            I think, you only need:
            And(Transom, not(Mullion))
            "-Bueno, pues ahora que los dos nos hemos visto el uno al otro -repuso el
            unicornio-si tu crees en mi, yo creeré en tí, ¿trato hecho?"
            Lewis Carroll

            Comment


              #7
              you are missing a comma before the <false> statement. not(Mullion), 1=2

              however I think the And Not statement Andrew & duende mentioned will be a little easier in the long run.
              Revit for newbies - A starting point for RFO


              chad
              BEER: Better, Efficient, Elegant, Repeatable.

              Comment


                #8
                Yes/no parameters are inherently true/false, so I'm not sure why you'd ever need to use the 1=2 statements. There might be a case I'm not thinking of, but I've never had to use that extra step in any of my formulas over the years. I think they're just mentioned in the other thread as a way to lock a parameter in a family. Duende's formula should work.

                Comment


                  #9
                  Originally posted by chris.macko View Post
                  Yes/no parameters are inherently true/false, so I'm not sure why you'd ever need to use the 1=2 statements. There might be a case I'm not thinking of, but I've never had to use that extra step in any of my formulas over the years. I think they're just mentioned in the other thread as a way to lock a parameter in a family. Duende's formula should work.
                  This sort of operation is to limit the choice.
                  It says if this one is turned on, then the others must be off.
                  It is an "if-then" statement technically. if this condition is met, then do X (ie turn off)
                  I can also do an "if-then-else" statement.

                  if I just use yes/no parameters, I actually have to check or uncheck the box to turn it on/off.
                  if I put a conditional statement, my choice elsewhere will drive the decision and it removes the check box for the choice
                  Last edited by Karalon10; May 22, 2017, 02:43 PM.

                  Comment


                    #10
                    The if/then statements or and/or make sense and I use them all the time. I was talking about using 1=1 or 1=2 to force the yes/no condition. That seems like an extra step that is already accommodated by the formula logic.

                    Comment

                    Working...
                    X