Results 1 to 10 of 10

Thread: Math Help

  1. #1
    Forum Addict Andres Franco's Avatar
    Join Date
    June 21, 2012
    Location
    Tours, France
    Posts
    1,116
    Current Local Time
    07:53 AM

    Not allowed! Not allowed!

    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)

    Click image for larger version. 

Name:	claustra.JPG 
Views:	29 
Size:	39.4 KB 
ID:	38249

    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)

    Click image for larger version. 

Name:	formula.JPG 
Views:	32 
Size:	30.5 KB 
ID:	38250 Click image for larger version. 

Name:	claustra distance 1.JPG 
Views:	30 
Size:	60.2 KB 
ID:	38251Click image for larger version. 

Name:	claustra distance 2.JPG 
Views:	30 
Size:	52.0 KB 
ID:	38252

    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!!
    Last edited by Andres Franco; January 31st, 2020 at 01:06 PM.

  2. #2
    Senior Member
    Join Date
    August 19, 2011
    Location
    New Hampshire
    Posts
    517
    Current Local Time
    01:53 AM

    1 Not allowed! Not allowed!
    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.

  3. #3
    Member
    Join Date
    November 4, 2012
    Location
    Budapest, Hungary
    Posts
    147
    Current Local Time
    07:53 AM

    1 Not allowed! Not allowed!
    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.

  4. #4
    Forum Addict Andres Franco's Avatar
    Join Date
    June 21, 2012
    Location
    Tours, France
    Posts
    1,116
    Current Local Time
    07:53 AM

    Not allowed! Not allowed!
    Quote 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

  5. #5
    Forum Addict Andres Franco's Avatar
    Join Date
    June 21, 2012
    Location
    Tours, France
    Posts
    1,116
    Current Local Time
    07:53 AM

    Not allowed! Not allowed!
    Quote 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!!

  6. #6
    Member duende123's Avatar
    Join Date
    November 20, 2015
    Posts
    200
    Current Local Time
    01:53 AM

    Not allowed! Not allowed!
    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

  7. #7
    Forum Addict Andres Franco's Avatar
    Join Date
    June 21, 2012
    Location
    Tours, France
    Posts
    1,116
    Current Local Time
    07:53 AM

    Not allowed! Not allowed!
    Quote 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

  8. #8
    Member duende123's Avatar
    Join Date
    November 20, 2015
    Posts
    200
    Current Local Time
    01:53 AM

    Not allowed! Not allowed!
    I forgot it
    n has to be integer

    (which is nonsense because if it were not interger you could not do the array)
    (sorry)
    Last edited by duende123; January 31st, 2020 at 02:24 PM.

  9. #9
    Forum Addict Andres Franco's Avatar
    Join Date
    June 21, 2012
    Location
    Tours, France
    Posts
    1,116
    Current Local Time
    07:53 AM

    Not allowed! Not allowed!
    Quote 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)
    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

  10. #10
    Member duende123's Avatar
    Join Date
    November 20, 2015
    Posts
    200
    Current Local Time
    01:53 AM

    Not allowed! Not allowed!
    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)

Similar Threads

  1. Radial Arrays (I fail at math)
    By cellophane in forum Architecture - Family Creation
    Replies: 11
    Last Post: August 9th, 2013, 10:48 PM
  2. Doing the math: with adaptive components
    By ekkonap in forum Architecture - Conceptual Massing and Adaptive Components
    Replies: 6
    Last Post: January 1st, 2013, 09:42 AM
  3. Can you imagine the math required to do this?
    By MPwuzhere in forum Out There
    Replies: 1
    Last Post: April 30th, 2012, 03:01 PM
  4. Funny math?
    By DaveP in forum Out There
    Replies: 4
    Last Post: November 8th, 2011, 12:06 PM
  5. Inside the System: Thermodynamic Fun With Math
    By Inside the System in forum Blog Feeds
    Replies: 0
    Last Post: August 19th, 2011, 06:40 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •