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:

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:

## Comment