Calculate with Reporting parameter in family

Calculate with Reporting parameter in family

Anonymous
Not applicable
4,046 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,047 Views
23 Replies
Replies (23)
Message 2 of 24

barthbradley
Consultant
Consultant

What's the purpose of making them Reporting Parameters?  

0 Likes
Message 3 of 24

Anonymous
Not applicable

The purpose is to find the area of the inner triangle. I figure it would be easier then find out the formula to do this based on the outer dimensions. The angle of the triangle can be changed as well which makes it more complicated.

 

I thought this could be a work around. But it seems I can't use reporting paramaters for this purpose in a family? 

0 Likes
Message 4 of 24

ToanDN
Consultant
Consultant
It is not much more complicated using formulas.
Outer height = H
Long width = L1
Short width = L2
Offset = d

Inner Area = (H - 2*d) * ((L1 + L2)/2 - 2*d)

Angle does not matter
0 Likes
Message 5 of 24

barthbradley
Consultant
Consultant

how about...

 

INNER AREA=(BreddeBRA*LengdeBRA)+((BreddeBRA*TriangelBRA)/2)

 

 

...or

 

homer-calculated-the-mass-of-the-higgs-boson-in-1998-1.jpg

 

Smiley Wink

0 Likes
Message 6 of 24

Anonymous
Not applicable

Hello and thank you for your input.

This is the result I'm getting, I guessing I'm missing something here? I've made a filled region that show the correct result. The result I'm getting is only aroung half of what I'm looking for. Some how it looks as the triangel is missing somewhere. (Or more likely, my math skills suck!)

 

Anyway, thanks for trying to help me.

Report2.jpg

0 Likes
Message 7 of 24

barthbradley
Consultant
Consultant

Aren't you just trying to get the combined area of a rectangle and a right triangle?  

 

Rectangle=Length *Height

Right Triangle=(Length * Height)/2

 

Add results together. No? 

0 Likes
Message 8 of 24

ToanDN
Consultant
Consultant
In my post, Long width means the long side = 10000, short width means the short side = 6000.
0 Likes
Message 9 of 24

Anonymous
Not applicable

Basically yes. But given the dimensions that I have. When I try to calculate the area in blue (whick I'm looking for) I get a narrow area between the rektangle and the triangle which I can't figure out how to solve. 

0 Likes
Message 10 of 24

barthbradley
Consultant
Consultant

I don't know how that is possible. Maybe I'm misreading your first screenshot.  Want to post your family so we can see what actual construction dimensions you have?  

0 Likes
Message 11 of 24

Anonymous
Not applicable

Of course, here's the family

0 Likes
Message 12 of 24

Anonymous
Not applicable

I see, it's close but there is still some m² missing. 

0 Likes
Message 13 of 24

barthbradley
Consultant
Consultant

INNER AREA=(((Breddeti-(2*Tykkelse Yttervegg))*(Lengde-Tykkelse Yttervegg))+((Bredde-(2*Tykkelse Yttervegg))*(Lengde Triangel-Tykkelse Yttervegg)/2))

 

I think this works. It's based off your actual construction dimensions in your nested family.

 

...edited and corrected.

 

...Sorry. Edited again to add some parentheses.

 

INNER AREA=(((Breddeti-(2*Tykkelse Yttervegg))*(Lengde-Tykkelse Yttervegg))+((Bredde-(2*Tykkelse Yttervegg))*(Lengde Triangel-Tykkelse Yttervegg)/2))

 

 

 

 

0 Likes
Message 14 of 24

Anonymous
Not applicable

Thank you, this is also close but "Lengde Triangel - Tykkelse Yttervegg" doesn't equal the actual length of the inner triangle.

 

I guess this is harder then it looks. I gonna give this some serious thought and come back with a formula... hopefully 🙂

0 Likes
Message 15 of 24

barthbradley
Consultant
Consultant

HA! I see where your challenge is now.  You need some Trig to figure out that chuck of area. That area total needs to be subtracted from the sum yielded by the above equation.

 

....now I totally get where @ToanDN was coming from.  

0 Likes
Message 16 of 24

ToanDN
Consultant
Consultant
What is the family for? Can you use something with the area built-in such as floor, property line, etc...?
0 Likes
Message 17 of 24

barthbradley
Consultant
Consultant

Take at look at the attached file.  It'll blow your mind seeing what it took to figure out that area (parameter "a"). 

 

BTW: you don't need all those parameters. Some are just informational data I wanted.  

0 Likes
Message 18 of 24

ToanDN
Consultant
Consultant

I would simply build it in project to take advantage of the program's automatic calculation.

 

Capture.PNG

0 Likes
Message 19 of 24

barthbradley
Consultant
Consultant

@Anonymous: I got it down to one parameter: 

 

INSIDE AREA =

 

((Bredde - (2 * Tykkelse Yttervegg)) * (Lengde - (Tykkelse Yttervegg + ((Tykkelse Yttervegg / 2) * tan(c)) / tan(c)))) + ((Bredde - (2 * Tykkelse Yttervegg)) * (((Tykkelse Yttervegg / 2) * tan(c)) / tan(c))) - (((((Tykkelse Yttervegg / 2) * tan(c)) / tan(c)) * ((Tykkelse Yttervegg / 2) * tan(c))) / 2) + (((Bredde - ((2 * Tykkelse Yttervegg)) - ((Tykkelse Yttervegg / 2) * tan(c))) / tan(c)) * (((Bredde - (2 * Tykkelse Yttervegg)) - ((Tykkelse Yttervegg / 2) * tan(c)))) / 2)

 

 

Copy and paste into your Bygg_04V.rfa.

 

...key: 

 BYGG.png

 

 

BYGG.png

0 Likes
Message 20 of 24

barthbradley
Consultant
Consultant

Sorry for Pinging you guys so much.  This is my final, final answer. This one will work as-is inside the Bygg_04V.rfa. Promise. Just tested.  

 

INSIDE AREA=

 

((Bredde - (2 * Tykkelse Yttervegg)) * (Lengde - (Tykkelse Yttervegg + ((Tykkelse Yttervegg / 2) * tan((atan(Bredde / Lengde Triangel))) / tan((atan(Bredde / Lengde Triangel)))))) + ((Bredde - (2 * Tykkelse Yttervegg)) *(((Tykkelse Yttervegg / 2) * tan((atan(Bredde / Lengde Triangel)))) / tan((atan(Bredde / Lengde Triangel))))) - (((((Tykkelse Yttervegg / 2) * tan((atan(Bredde / Lengde Triangel)))) / tan((atan(Bredde / Lengde Triangel))))* ((Tykkelse Yttervegg / 2) * tan((atan(Bredde / Lengde Triangel))))) / 2)+(((Bredde - ((2 * Tykkelse Yttervegg)) - ((Tykkelse Yttervegg / 2) * tan((atan(Bredde / Lengde Triangel))))) / tan((atan(Bredde / Lengde Triangel))))* (((Bredde - (2 * Tykkelse Yttervegg)) - ((Tykkelse Yttervegg / 2) * tan((atan(Bredde / Lengde Triangel)))))) / 2))

 

...key:

BYGG.png

0 Likes