MONUMETRIC Video mmt-volt

Collapse

Visibility parameters and formulas

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • John McCamont
    Member
    • August 9, 2011
    • 63

    Visibility parameters and formulas

    Hi there,

    Can someone help me with formulas in family types? I've got visibility parameters for three types of door swings: 90 degree, 120 degree and 180 degree.

    What I want is to be able to check one box and have the others automatically uncheck if they are checked. For example: 90 degree is checked, but I want to change it to 180.. I wanna click 180 and have 90 automatically switch off, and if I switch again to 120, to have 180 switch off...

    I can get one to switch off by using the "not(90 degree)" parameter, but I want something like "not(90 degree) not(180 degree)" but Revit doesn't like that.

    Any thoughts?

    TIA
    John
  • Alex Cunningham
    Moderator
    "RFO 2012 Spelling Bee Champion"
    • December 8, 2010
    • 3594
    • Northern California

    #2
    TRY

    not(or(90 degree), or(120 degree)
    -Alex Cunningham

    Comment

    • John McCamont
      Member
      • August 9, 2011
      • 63

      #3
      Originally posted by Alex Cunningham
      TRY

      not(or(90 degree), or(120 degree)
      Nope. "Incorrect number of arguments to function"

      Thanks for trying. I ended up just making them all stand-alone. I was just trying to prevent accidentally showing two types of swings the smart way. But the old fashioned way will work just as well.

      Anyone else is still free to take a stab at it. If you just like to solve problems

      Comment

      • Randy_CaS
        Senior Member
        • May 25, 2011
        • 192

        #4
        not(or(180 degree,120 degree)) works for vis control of the 90 degree option, but using similar formula for the other options cretaes a circular reference..... hmm
        Last edited by Randy_CaS; August 11, 2011, 07:29 PM.

        http://www.captiveaire.com/
        Commercial Kitchen Ventilation Systems

        Comment

        • Alex Cunningham
          Moderator
          "RFO 2012 Spelling Bee Champion"
          • December 8, 2010
          • 3594
          • Northern California

          #5
          Originally posted by Randy_CaS
          not(and(or(180 degree,120 degree))) works for vis control of the 90 degree option, but using similar formula for the other options cretaes a circular reference..... hmm
          sorry i was in a rush out the door and didnt finish the )))

          I thinking the exact same thing the circular chain thing. Let me test something will report back in a few.
          -Alex Cunningham

          Comment

          • Alex Cunningham
            Moderator
            "RFO 2012 Spelling Bee Champion"
            • December 8, 2010
            • 3594
            • Northern California

            #6
            does this make more sence? Basicaly it you use "90 parameter" for your object assignment. the user will use "90 visibility" for their selection.

            This formula will only allow only one visibility to be on at one time. If the user selects more then 1 check box everything turns off.

            EDIT: simplified the formula for "90 parameter" "120 parameter" "180 parameter" my brain makes formulas in a strange way sometimes.

            EDIT EDIT:
            removed "90 formula" "120 formula" "180 formula" built it into 1 formula
            Attached Files
            Last edited by Alex Cunningham; August 11, 2011, 08:54 PM. Reason: simplified formula, updated attachments
            -Alex Cunningham

            Comment

            • John McCamont
              Member
              • August 9, 2011
              • 63

              #7
              Originally posted by Alex Cunningham
              does this make more sence? Basicaly it you use "90 parameter" for your object assignment. the user will use "90 visibility" for their selection.

              This formula will only allow only one visibility to be on at one time. If the user selects more then 1 check box everything turns off.

              EDIT: simplified the formula for "90 parameter" "120 parameter" "180 parameter" my brain makes formulas in a strange way sometimes.

              EDIT EDIT:
              removed "90 formula" "120 formula" "180 formula" built it into 1 formula
              I didn't 100% follow you in the parameter/visibility distinction. I noticed one was "data" and the other was "other".. mine are set up as simple yes/no graphic parameters.

              I wasn't able to open up your attached family cuz my company is still using 2011 .. think you can step it down? I could prolly figure it out from your example if I could open it... I know, we're way behind the times

              oh, and thanks a lot for the help guys.

              Comment

              • Alex Cunningham
                Moderator
                "RFO 2012 Spelling Bee Champion"
                • December 8, 2010
                • 3594
                • Northern California

                #8
                My file is in 2011...

                the formula is fairly simple.

                You cant name your parameter just "90" it cant be only numbers.

                It takes 2 sets of 3 visibility parameters to do what you want.
                For my example I use "90 Visibility" "120 Visibility" "180 Visibility" and "90 Parameter" "120 Parameter" "180 Parameter"

                The "Visibility" paramters are the user defined selections. This is what the user will use in the project to select what swing they want to show.
                The "Parameters" parameters are assigned to your family objects and have the formulas.
                and((not(120 Visibility)), and((not(180 Visibility)), and(90 Visibility)))
                and((not(120 visibility)), and((not(90 visibility)), and(180 visibility)))
                and((not(90 visibility)), and((not(180 visibility)), and(120 visibility)))

                This formula will also only allow only one visibility check box on at a time.

                Ive reposted the family for you.
                Attached Files
                -Alex Cunningham

                Comment

                • John McCamont
                  Member
                  • August 9, 2011
                  • 63

                  #9
                  d'oh. I forgot this drb I'm workin on is using 2010.. lol whoops.

                  I'll give it another shot. Thanks!

                  Comment

                  • Alex Cunningham
                    Moderator
                    "RFO 2012 Spelling Bee Champion"
                    • December 8, 2010
                    • 3594
                    • Northern California

                    #10
                    2010 version for ya

                    Enjoy
                    Attached Files
                    -Alex Cunningham

                    Comment

                    Related Topics

                    Collapse

                    Working...