Search code examples
c#revit

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


Solution

  • 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.