GeometryObject Class

The indexed property Element.Geometry[] can be used to pull the geometry of any model element (3D element). This applies both to system family instances such as walls, floors and roofs, and also to family instances of many categories, e.g. doors, windows, furniture, or masses.

The extracted geometry is returned to you as Autodesk.Revit.DB.GeometryElement. You can iterate through the geometry members of that element by using the GetEnumerator() method.

Typically, the objects returned at the top level of the extracted geometry will be one of:

This figure illustrates the hierarchy of objects found by geometry extraction.