Thứ Tư, 6 tháng 10, 2010

Calculating Pi in Revit 2011

Now I’m not going to take credit for this, but some bright spark over at the AUGI forums worked out that you can get Revit to use Pi in formulas..the credit goes to Alfredo Medina for finding this. I am currently working on a panel with a circular aperture.

image

I wanted to calculate the percentage of the hole, compared to the size of the overall Panel, so as part of this exercise I needed to work out the area of the aperture. So Alfredo says that if you put the following formula in

pi() this will give you 3.14159265 automatically.

He wasn’t wrong….

image

In knowing this I could then use the following formula to work out the area of the circular aperture.

pi() * Radius ^ 2

image

So I am not sure when this one sneaked in through the back door, but it sure isn’t documented in the help file. : – )

Không có nhận xét nào:

Đăng nhận xét