Beam and Column Dimensions

Beam and Column Dimensions

Anonymous
Not applicable
2,116 Views
3 Replies
Message 1 of 4

Beam and Column Dimensions

Anonymous
Not applicable

Hi,

I am writing this because I haven't found any code that would get the dimensions of columns and beams as they much different from the way to get that of walls/slabs. Can anyone please provide me with a code to get the dimensions of Columns/Beams using c#.

Note: Revit 2015.

 

I appreciate your time for this.

Thank you

0 Likes
2,117 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

Get beam faces > Get vertex > Create Lines based on points > Create dimension with Line and Beam Reference

0 Likes
Message 3 of 4

RPTHOMAS108
Mentor
Mentor

In older versions of Revit this was always tricky because the geometry is parameter driven and those parameter names are not always consistent between family authors.

 

One solution I found was to get the GeometryElement from the symbol geometry and then deduct bounding box min values from bounding box max values. In the case of symbol geometry, the bounding box should be aligned with the representation of the symbol (regardless of how instance is manipulated in space).

 

i.e:

 

For a beam X.Max - X.Min = Width, Z.Max - Z.Min = Depth.

For a column X.Max - X.Min = Width, Y.Max - Y.Min = Depth

 

The above is dependent on how the family was made in the first place. So logically if you have certainty of family construction i.e. knowing what parameters drive it then extraction of these is more reliable and gives better performance than the above.

 

Thankfully in modern versions of Revit you have the common section profiles built in parameters so if there is confidence these have been used getting such information is as easy as it should be (from consistent parameters across organisations).

0 Likes
Message 4 of 4

Anonymous
Not applicable

Does anybody know how to get section parameters in newer versions of Revit?

 

I have the following code and I want to get width and height values of the column.

FilteredElementCollector collector = new FilteredElementCollector(Global.doc()).WhereElementIsNotElementType().OfCategory(BuiltInCategory.OST_StructuralColumns); // select all structural columns
List<Element> allcolumnList = collector.ToList(); // select all structural columns as a List
0 Likes