This site is not sponsored or endorsed by, or affiliated with, Autodesk, Inc.



Sunday, 22 May 2011

11.1 Slope That Family

The next few posts are going to revolve around families and just releasing some of the advanced user setting that tend to get lost in the mix. the first one is on formulas, I made this family over a year ago and took me about 3 days to get working and then 2 days later audodesk released sloped columns in revit so it ended up being a waste of time but it is a good introduction to formulas and equations. The principal is the right angled triangle (http://www.visualtrig.com/Default.aspx) and which values you know and using Cosine, Sine and Tan to work out either the angle or one of the lengths. With this family we want the column depth to be consistent (perpendicular to the face) when sloped at different angles, for this to happen the horizontal distance needs to increase or decrease. We also use a top offset value(L) to force the angle change into the geometry. again this is just an introduction, maybe we can work into something harder near the end of the series. The LRUG (London Revit User Group) are also doing families in their next meeting so i can report any tricks i learn from that.

When you define the Angle;
H (reporting Parameter of the 2 reference levels)
L (Instance parameter)(top offset) H * tan(90-A)
A (Type parameter) (Angle) 
Width (Type parameter)
Column Depth (Type Paramter) (Perpendicular to the face)
HD (Horizontal Depth renamed from Depth and changed to Instance parameter) Column Depth /cos (90-A)

When you define the top offset;
H (reporting Parameter of the 2 reference levels)
L (Instance parameter)(top offset)
A (instance Parameter) (Angle) atan(H/L)
Width (Type parameter)
Column Depth (Type Paramter)(Perpendicular to the face)
HD (Horizontal Depth renamed from Depth and changed to Instance parameter) Column Depth /cos (90-A)


Enjoy



No comments: