简体   繁体   中英

How to get width, height and depth of selected elements in Revit using C#

How to get the width, height and depth of selected elements in Revit using C#. Please help me and share the code. Thanks Philip

The easiest way to achieve this is to simply query the selected element for its bounding box using the BoundingBox property .

Here is an example of using it for Determining Model Extents via Wall Bounding Box .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM