Announcement

Collapse
No announcement yet.

Array has an invalid value (1)

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

    Array has an invalid value (1)

    Dear Forum users,

    I started creating family's in Revit not so long time ago. I cant get trough the next error;

    I have an extrusion (pipe), and i have an nestled family (rozet). My intension is to Array "rozet family" every 500mm in height, depending on the length (Lengte) . All this works for me now. I also made an second family (rozet) that turns on visible at (Lengte < 999 mm).

    I get the Array error at counting (1) so i cant make my family work. I think i am missing an Parameter to keep the array count at (2) and turn the visibility off at length < 1000 mm.


    Array counts 500mm = 1 , 1000mm =2 etc.

    Can you guys help me with this problem, i cant get the right formula or do i have to make it work in an different way.
    Thanks for your help guyss.
    Attached Files

    #2
    you cannot have an array to a sole object, the minimum objects for an array is set to 2, so it may be your problem, HTH
    Andres Franco - Architect - BIM Coordinator
    Revit Certified Professional - AutoCAD Certified Professional
    "I became insane, with long intervals of horribly sanity"
    E.A Poe

    Comment


      #3
      Thanks for your Reply Andres,

      I understand that you can not have an array to a sole object, but thats what i want to keep the array at 2 when lenght is < 1000mm to prevent the error, and turn off the Array (visibility) in combination of turning on the second family (sole object).

      But i can't make it happen, don't know how to write the formula.

      Comment


        #4
        There are tricks for this.
        What you need to do is add a new parameter that holds the actual amount of rozetten (aantal_calc). This should then have a formula, something like IF (aantal < 2, 2, aantal). This means that if the value is smaller then 2 it still takes 2 as the value. This solves the array of 1 issue. BUT you still have an array of 2 left.

        So next step is to add a visibility parameter to the array that hides it when the value of 'aantal' is less then 2.

        Next step is to add one of the rozetten on top of the first one of your array and add visibility parameter to it that hides it when the value of 'aantal' is greater then 1.


        What this all means is that the array will be shown when you value of 'aantal' is 2 or heigher and that the single rozet will be shown when the value of 'aantal' is less then 2.

        To make it easier I would add the array to a nested family, that way you can hide the entire family all at once.


        oh and of course the most important bit, Welcome to the forum !
        Company Website: www.deurloobm.nl
        Revit Ideas: Is this family Mirrored? | Approve warnings | Family Type parameter just those in the family

        Comment


          #5
          Thank you for your reply Robin,

          And thanks for the welcome.

          The part about the visibility is clear. Also the first part about adding a new parameter but i can't get it work. Maybe its because of the fact that i'm new with formula's. Can you add this parameter (in the correct way) in my Family model?. That will help a lot because i'm struggeling with this.

          I think i will get the visibility parameters done by myself.

          Comment


            #6
            Another way (If you do need to sometimes show only 1 object) is to set the distance between the last to objects to zero (Or as close as possible if that breaks) if the count is less than 2. So visually there is 1 object even though the array is 2.
            (Obviously if you are arraying shared families that you want to schedule it will still count 2).
            "One must imagine Sisyphus happy." Albert Camus - "The innovator has for enemies all those who have done well under the old conditions, and lukewarm defenders in those who may ​do well under the new." Nicolo Machiavelli -"Things that are too complex are not useful, Things that are useful are simple." Mikhail Kalashnikov

            Comment


              #7
              Hi guys,

              I think i just did it now . Thanks Robin, it solved my problem. ( And i think i remember you from BSA WDB, i did my internship at the same Company a few years ago).

              Comment


                #8
                Originally posted by Erdem01 View Post
                Hi guys,

                I think i just did it now . Thanks Robin, it solved my problem. ( And i think i remember you from BSA WDB, i did my internship at the same Company a few years ago).
                Yep that's where I used to work about a year ago now. I think I remember your name, but there were a lot of interns during the years, so I'm afraid I don't have a sharp recollection of you :hide:. Send me a message with your info (LinkedIn for example) so we can connect.

                Good that you solved it on your own, much better way to learn!

                Had not looked at your family before now, looks like you are building scaffolding?
                Company Website: www.deurloobm.nl
                Revit Ideas: Is this family Mirrored? | Approve warnings | Family Type parameter just those in the family

                Comment


                  #9
                  While you're at it, swing over to the Revit Ideas page and upvote this Idea
                  https://forums.autodesk.com/t5/revit.../idi-p/6352220
                  so we (hopefully) won't have to do these silly workarounds in the future.
                  THe Idea is "Under Review", so it does have a chance of being worked on if it gets enough votes.
                  Dave Plumb
                  BWBR Architects; St Paul, MN

                  CADsplaining: When a BIM rookie tells you how you should have done something.

                  Comment


                    #10
                    Originally posted by DaveP View Post
                    While you're at it, swing over to the Revit Ideas page and upvote this Idea
                    https://forums.autodesk.com/t5/revit.../idi-p/6352220
                    so we (hopefully) won't have to do these silly workarounds in the future.
                    THe Idea is "Under Review", so it does have a chance of being worked on if it gets enough votes.
                    Great Idea I've just voted!!, thank's Dave
                    Andres Franco - Architect - BIM Coordinator
                    Revit Certified Professional - AutoCAD Certified Professional
                    "I became insane, with long intervals of horribly sanity"
                    E.A Poe

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X