Hello,
I'm currently working on a project in Revit and I need to call the size of slabs, columns, and beams and print theses sizes by using python 2. Could you please advise me on how to do this? I've been trying to figure it out on my own, but I haven't had any luck.
Thank you for your time and help
Solved! Go to Solution.
Solved by jeremy_tammik. Go to Solution.
Solved by jeremy_tammik. Go to Solution.
For a rough first estimate that works for almost all elements, you can simply call the BoundingBox property and determine its X, Y and Z length:
https://www.revitapidocs.com/2023/def2f9f2-b23a-bcea-43a3-e6de41b014c8.htm
The bounding box is axis aligned. Hence, the results will mostly be pretty accurate for axis aligned objects. For non-aligned elements, the values will be too large.
Simply use the beam location line length for the long dimension, and the beam width and height for the cross section dimensions.
Can't find what you're looking for? Ask the community or share your knowledge.