Announcement

Collapse
No announcement yet.

Math Help

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

    Math Help

    Hi everybody;

    I need some help to solve a mathematical problem for one of my Revit families, the family I'm trying to create is a "Claustra" sorry but I didn't find the right name in English, It's a kind of Wooden Grid (see pic below)

    claustra.JPG

    So my problem is that I need to be able to change the size of the grid length and still having always a distance between each element which is equal to 130 mm, til here no problem I've created a formula (a very simple one) which calculates the number of elements based on the total length of the grid (Which is my first parameter) divided by the distance between elements (second parameter) which drives to the number of elements which is an Integer parameter, the problem is that I'm having a distance which is not equal to the distance between elements that I need, I'm always having a random distance at the end of the grid, I mean if I change the length values I will have a distance which is always different regarding the total length of the element (see images)

    formula.JPG claustra distance 1.JPGclaustra distance 2.JPG

    Hope this make sense!!

    How can I solve this? I know maybe is a very simple one but I'm stacked here

    Thanks in advance ans have a nice weekend!! :whiskey::bb:
    Last edited by Andres Franco; January 31, 2020, 01:06 PM.
    Andres Franco - Architect - BIM Coordinator
    Revit Certified Professional - AutoCAD Certified Professional
    "I became insane, with long intervals of horribly sanity"
    E.A Poe


    #2
    Is the spacing between elements always going to be 130? Why is your input not the number of grids but the length of the claustra? You will always have a remainder on the last grid element unless you have a rounding formula.
    Developer at Anguleris BIMsmith Marketplace.
    Previously at Sumex Design for ARCAT.com

    Comment


      #3
      No real solution for this, if both the distance between the elements and the total length is given.

      Possible options to solve this:

      - Align the array to center this way the remainder will split between the two ends.
      - Do not use the exact distance, but something close to it. I mean calculate the number of the grids from the distance, divide the full length with the number of grids, than use this distance. It will be close to the defined distance, and the model will look good.

      Comment


        #4
        Originally posted by Andrew K View Post
        Is the spacing between elements always going to be 130? Why is your input not the number of grids but the length of the claustra? You will always have a remainder on the last grid element unless you have a rounding formula.
        Hi, and thank you for your reply, yes the distance between elements must be always 130 mm*

        My input is the length because I don't figure out another solution!!, but i'm open to suggestions

        Thank you again
        Andres Franco - Architect - BIM Coordinator
        Revit Certified Professional - AutoCAD Certified Professional
        "I became insane, with long intervals of horribly sanity"
        E.A Poe

        Comment


          #5
          Originally posted by infeeeee View Post
          No real solution for this, if both the distance between the elements and the total length is given.

          Possible options to solve this:

          - Align the array to center this way the remainder will split between the two ends.
          - Do not use the exact distance, but something close to it. I mean calculate the number of the grids from the distance, divide the full length with the number of grids, than use this distance. It will be close to the defined distance, and the model will look good.
          Thank you so much for your suggestion I'll give it a try!!
          Andres Franco - Architect - BIM Coordinator
          Revit Certified Professional - AutoCAD Certified Professional
          "I became insane, with long intervals of horribly sanity"
          E.A Poe

          Comment


            #6
            you need to have 2 lengths

            L desired length
            l real length of lattice
            n number of vertical elements

            e thickness of the element

            n = (L-e) / 130 +1
            l = (n-1) * 130 + e
            "-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
              Originally posted by duende123 View Post
              you need to have 2 lengths

              L desired length
              l real length of lattice
              n number of vertical elements

              e thickness of the element

              n = (L-e) / 130 +1
              l = (n-1) * 130 + e
              Ok this is interesting, I'll try to use your formula in my family, thank you so much
              Andres Franco - Architect - BIM Coordinator
              Revit Certified Professional - AutoCAD Certified Professional
              "I became insane, with long intervals of horribly sanity"
              E.A Poe

              Comment


                #8
                I forgot it
                n has to be integer

                (which is nonsense because if it were not interger you could not do the array)
                (sorry):crazy:
                Last edited by duende123; January 31, 2020, 02:24 PM.
                "-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


                  #9
                  Originally posted by duende123 View Post
                  I forgot it
                  n has to be integer

                  (which is nonsense because if it were not interger you could not do the array)
                  (sorry):crazy:
                  No problem, I was trying to put your idea in my family and I was a little bit confused, anyway thank you for the reply
                  Andres Franco - Architect - BIM Coordinator
                  Revit Certified Professional - AutoCAD Certified Professional
                  "I became insane, with long intervals of horribly sanity"
                  E.A Poe

                  Comment


                    #10
                    Try it
                    In this kind of thing there are two situations
                    Mandatory space
                    Desired Length -> Real Length
                    Mandatory Length
                    Desired spacing -> Real spacing

                    If everything is very confusing we can go to Spanish
                    Google doesn't always help
                    (poor thing until this helped me to translate)
                    "-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

                    Related Topics

                    Collapse

                    Working...
                    X