Calculate with Reporting parameter in family

Calculate with Reporting parameter in family

Anonymous
Not applicable
4,071 Views
23 Replies
Message 1 of 24

Calculate with Reporting parameter in family

Anonymous
Not applicable

Hello,

I try to make some calculations with reporting parameters, but I can't get it to work. Does anyone know how to get around this problem? I know I can do these calculations in a list in the Project but I like to do it the family.

 

Thanks

 

 

Report.jpg

0 Likes
Accepted solutions (1)
4,072 Views
23 Replies
Replies (23)
Message 21 of 24

FAIR59
Advisor
Advisor

You can find a reasonably simple formula, by subtracting  areas from the original area.

formula.PNG

original area:  H * ( 2L+Lt)/2

yellow areas:   ( 2L+Lt ) * x

green area:      (H - 2x) * x

red area:          (H - 2x ) * d, where d / x = sqrt(Lt^2 + H^2) / H

 

In the original parameters:

(Bredde - 2 * Tykkelse Yttervegg) * ((Lengde + Lengde Triangel / 2) - Tykkelse Yttervegg * (1 + sqrt(1 + (Lengde Triangel ^ 2 / Bredde ^ 2))))

0 Likes
Message 22 of 24

barthbradley
Consultant
Consultant
Accepted solution

@FAIR59 wrote:

You can find a reasonably simple formula, by subtracting  areas from the original area.

formula.PNG

original area:  H * ( 2L+Lt)/2

yellow areas:   ( 2L+Lt ) * x

green area:      (H - 2x) * x

red area:          (H - 2x ) * d, where d / x = sqrt(Lt^2 + H^2) / H

 

In the original parameters:

(Bredde - 2 * Tykkelse Yttervegg) * ((Lengde + Lengde Triangel / 2) - Tykkelse Yttervegg * (1 + sqrt(1 + (Lengde Triangel ^ 2 / Bredde ^ 2))))


 

 

Nice, @FAIR59.  Dead-On-Balls-Accurate!  You win! 

 

 

Message 23 of 24

Anonymous
Not applicable

WOW! Thanks alot to both of you! This is excatly what I'm after.

 

My goal with this family is to use it in volume studies. This way I can just place simple volumes at a site and let Revit make the calculations for me. I also nested the family into another and added an array parameter. This let me choose how many floors (Antall Etasjer) I like to have in the building.

 

I'm thinking that I also are going to bring in the site itself in this little project since we always have a percantage of how much area (BRA) we can build on a site. It would be really helpful to see this in real time when you are placing the volumes.

 

Anyway, thanks again! Couldn't have done this without your help.

 

I'm attaching a small project with both of your fomulas.

Message 24 of 24

Anonymous
Not applicable

Hello,

I'm posting this here since we have the whole history here. What I've done since the last post is to try and understand the solution from you guys and then make my own calculations, so that I can understand it myself :).

 

The problem I'm having now is when the length of Lengde Triangel equals 0 Revit can't calculate Area B and D. So what I'm trying to do is to make a conditional statement as the image show.

 

Any suggestions on how to do this?

 

IF.png

0 Likes