Announcement

Collapse
No announcement yet.

Formulas Type Parameters - Switches

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

    Formulas Type Parameters - Switches

    I am trying to have my not(type parameter) switch with multi parameters. Anybody able to help me out on this? I ve spent an hour trying different formula expressions with no luck.

    i am using this as a reference.
    http://revitfamilies.blogspot.com/20...-formulae.html

    I have attached the family i am working on.
    Attached Files
    -Alex Cunningham

    #2
    So if both of those are checked you want Design Criteria to be unchecked, and if BOTH are unchecked you want Design Criteria to be checked? If this is correct I belive this should work...

    if(General Notes,0,if(Abreviations,0,1))

    This is not quite working...give me a few...
    Last edited by gdoherty0102; January 25, 2011, 09:54 PM.

    Comment


      #3
      not(and(General Notes, Abbreviations))

      Comment


        #4
        It keeps giving me the:
        "There is a circular chain of references among the formulas"

        Your formula works. Ive found a few others that work as well. But I have to be able to put the formula in each of the paramerters.... maybe I need to completly rethink the while thing.
        -Alex Cunningham

        Comment


          #5
          You will not be able to put the formula in each because they will all be contolled by a formula that references each other. If Design Criteria is dependent of GN and Abbreviations the others can not be dependent on DC. There has to be a start point.

          Comment


            #6
            Originally posted by gdoherty0102 View Post
            You will not be able to put the formula in each because they will all be contolled by a formula that references each other. If Design Criteria is dependent of GN and Abbreviations the others can not be dependent on DC. There has to be a start point.
            You are right, for more then one reason. It's not possible to let both Abbreviations and General Notes react to check / uncheck in the Design Criteria. Simply because unchecking Design Criteria can mean three things: Abbreviations is checked, General Notes is checked or both are checked.
            Revit is not that Intelligent...

            It can be done to let the Design Criteria react to both Abbreviations and General Notes.

            This is how I did it:

            Add parameter "test" (Type, Integer) = if(General Notes, 0, if(Abbreviations, 0, 1))
            This states that this parameter has a value of 0 if Abbreviations AND/OR General Notes are checked.
            If both are unchecked, it's set to 1.

            Add a formula to Design Criteria: test > 0.

            This let's Design Criteria know to stay unchecked unless BOTH other parameters are unchecked.
            Attached Files
            Martijn de Riet
            Professional Revit Consultant | Revit API Developer
            MdR Advies
            Planta1 Revit Online Consulting

            Comment


              #7
              I was just working on this exact thing when you posted it. It works for the turning off of the other parameters but isnt what I have invisioned. I am coming to the realization that I can't do what I have invisioned.

              I want to have instance baced paramertes that I only have to check the parameter I want and the rest turn off and have it be able to go to many more then 3 types. sorta like
              if(parameter A is on, turn off parameter B, C, D, E, ect...)
              if(parameter B is on, turn off parameter A, C, D, E, ect...)
              if(parameter C is on, turn off parameter A, B, D, E, ect...)
              if(parameter D is on, turn off parameter A, B, C, E, ect...)
              if(parameter E is on, turn off parameter A, B, C, D, ect...)
              if(parameter ect... is on, turn off parameter A, B, C, D, E)

              I was just trying to get rid of all the different types I have had to create to get my visibility graphics to display correctly. I am gona sleep on this and come back to it tomorrow.
              -Alex Cunningham

              Comment


                #8
                The only way you can do this is by an integer value that triggers a description in one parameter, and which the visibility parameters can relate their visibility on. I would fiddle with this but since it's 2:28 am I'm also going to crash.
                Martijn de Riet
                Professional Revit Consultant | Revit API Developer
                MdR Advies
                Planta1 Revit Online Consulting

                Comment


                  #9
                  There are at least 2 solutions to this, depending on the situation.

                  Solution A is to make types and then check/uncheck parameters as required for each type.

                  Solution B is to create another parameter (integer) to whose value all the other yes/no parameters relate. In the example shown in the illustration, that parameter is "See object".

                  In your specific Schedule Note Border family, the above technique could be applied as shown on the second illustration. If you want to control the schedule notes as per instance, make all parameters in this group of parameters be instance, including "See note".
                  Attached Files
                  Freelance BIM Provider at Autodesk Services Marketplace | Linkedin

                  Comment


                    #10
                    Originally posted by Alfredo Medina View Post
                    There are at least 2 solutions to this, depending on the situation.

                    Solution A is to make types and then check/uncheck parameters as required for each type.

                    Solution B is to create another parameter (integer) to whose value all the other yes/no parameters relate. In the example shown in the illustration, that parameter is "See object".

                    In your Schedule Note border family, the above could be applied as shown on the second illustration.
                    This is exactly what I meant (option B). But I would add an text parameter in the properties so you don't have to guess which parameter is "1". That way you can bump all the checkboxes to the "other" parameter group so they're not blocking your view of the other parameters in the properties dialogue box.
                    Martijn de Riet
                    Professional Revit Consultant | Revit API Developer
                    MdR Advies
                    Planta1 Revit Online Consulting

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X