Announcement

Collapse
No announcement yet.

How do you set up arrays less than 2

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

    How do you set up arrays less than 2

    I am creating a family for steel soldiers, the soldiers come in varying lengths 675, 450mm etc.

    In the soldiers are holes which I have created with void extrusion and array.

    The 675 soldier works fine however the 450 soldier I get the error msg No of square holes has an invalid value.

    I have set up the parameter No of square holes (length/225)-1

    Does anyone know of a formula for arrays less than 2 of how to solve this problem?
    Revit 2019 user

    #2
    Arrays can't be less than 2. I generally create instances like that by cloning out the family. One family has the single instance and the other has the array.

    Edit:::

    I suppose you could add in an if() statement for if the array so that if the value goes below 2, make it 2 but have a length parameter move the void array out of the model and slide another void into its spot with another length parameter to cover the single instance.
    Last edited by Andrew K; December 14, 2011, 12:30 PM.
    Developer at Anguleris BIMsmith Marketplace.
    Previously at Sumex Design for ARCAT.com

    Comment


      #3
      Andrew's got it - it's all about conditional statements controlling "rule" parameters (either lengths or, as I prefer, visibility).

      Dan (unintionally I'm sure) opened a can of worms on the subject HERE

      And welcome to the forum BTW! :thumbsup:

      Comment


        #4
        n (integer parameter driving the array)=if(formula to determine n < 2, 2, formula to determine n)

        the rest is redundancy and visibility parameters.

        see example. Clipboard01.jpg
        There must be a better way...

        Ekko Nap
        Professional nitpicker, architect, revit consultant, etc.

        Comment


          #5
          Care to tell everyone that all this is done cause someone (not saying it's you) wants this perfect little insulation hatching....
          oops... :laugh:

          Seriously: I teach this example in my classes always. It's completely retarded to go through all that trouble but it's a nice excersize in family creation.
          Martijn de Riet
          Professional Revit Consultant | Revit API Developer
          MdR Advies
          Planta1 Revit Online Consulting

          Comment


            #6
            Originally posted by mdradvies View Post
            Care to tell everyone that all this is done cause someone (not saying it's you) wants this perfect little insulation hatching....
            oops... :laugh:

            Seriously: I teach this example in my classes always. It's completely retarded to go through all that trouble but it's a nice excersize in family creation.
            Just wait till I get it to miter
            Still, as long as I'm doing details in 2D I do care about a clean look. Makes the drawing much more legible. Plus, it rotates!
            Final argument is the best though: unless I were to get very unfriendly, this will save me the time spent arguing against it.
            Last edited by ekkonap; December 16, 2011, 07:11 AM.
            There must be a better way...

            Ekko Nap
            Professional nitpicker, architect, revit consultant, etc.

            Comment


              #7
              Wait one second, Ekko are developing a line based component for insulation batting?!? :crazy:

              Comment


                #8
                Originally posted by snowyweston View Post
                Wait one second, Ekko are developing a line based component for insulation batting?!? :crazy:
                No, I am not. I was, last friday afternoon. Next time I can spare an hour or so, I'll get the mitering bit done.
                There must be a better way...

                Ekko Nap
                Professional nitpicker, architect, revit consultant, etc.

                Comment


                  #9
                  Originally posted by snowyweston View Post
                  Wait one second, Ekko are developing a line based component for insulation batting?!? :crazy:
                  Yup, but he's not alone... Did you know this is always in the first 3 questions I get when I do a demo? "how do we draw a proper insulation". Like I said, completely retarded... Even worse: it's an official dutch (cad)drawing regulation. Needs to look like this. Personally, I think they should stick it... But that's just me. Once you are legally bound by contract to have your drawings follow the official standards you're screwed...
                  Nonetheless, I like my drawings to look nice and clean too. That's why I make a good habit not to sneeze on my screen :laugh:
                  Martijn de Riet
                  Professional Revit Consultant | Revit API Developer
                  MdR Advies
                  Planta1 Revit Online Consulting

                  Comment


                    #10
                    Originally posted by mdradvies View Post
                    Yup, but he's not alone... Did you know this is always in the first 3 questions I get when I do a demo?
                    Frustrating isn't it. Almost enough to just get it over with. Anyway, I think this was the first time I used formula's to drive formula's in a nested family. Has potential. Beware though: tangents are a pain in the [MdR regulation storage facility] when driving other formula's.
                    Last edited by ekkonap; December 16, 2011, 09:41 AM.
                    There must be a better way...

                    Ekko Nap
                    Professional nitpicker, architect, revit consultant, etc.

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X