# Python - Element Geometry - List Elements?

**URL:** <https://forum.dynamobim.com/t/python-element-geometry-list-elements/99144>\
**Category:** Revit\
**Tags:** revit, python, geometry, dynamo\
**Created:** [March 17, 2024, 6:57am UTC](https://forum.dynamobim.com/t/python-element-geometry-list-elements/99144 "2024-03-17T06:57:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [March 17, 2024, 6:57am UTC](https://forum.dynamobim.com/t/python-element-geometry-list-elements/99144/1 "2024-03-17T06:57:33Z")

</div>

Good day.  
I am trying to obtain the “solids of the structural elements-columns” geometries, I have tried code that has been published in the forum but it does not help me… I leave my code and I appreciate your help.

 ![ElementGeometrya_Python](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/f/1fcae126ba80d7cd080b5b73d36a60a240de0a5b.png)  
… in the second image I manage to obtain the geometry of some elements but when I have 15 thousand elements the code does not return all the geometries… why =??? What am I doing wrong or what is missing?  
 ![ElementGeometrya_Python_2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/0/8065d5d62a8856f55dfbf05b5329f46761a1a2cf.png)  
[ERROR-ELEMENT GEOMETRY.dyn](https://forum.dynamobim.com/uploads/short-url/ea42cQR8J6wqpHr9wuSk8Np5AXC.dyn) (7.1 KB)

---

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [March 17, 2024, 9:31am UTC](https://forum.dynamobim.com/t/python-element-geometry-list-elements/99144/2 "2024-03-17T09:31:08Z")

</div>

Hi,

you must include in your code the case where the `GeometryObject` is of type `GeometryInstance` (in addition to the `Solid` type).

Example here

> [@Geometry of elements in python script](https://forum.dynamobim.com/t/geometry-of-elements-in-python-script/82119/2):
>
> Hi, here an example import clr import sys import System clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import \* import Autodesk.DesignScript.Geometry as DS #import Revit API clr.AddReference('RevitAPI') import Autodesk from Autodesk.Revit.DB import \* import Autodesk.Revit.DB as DB clr.AddReference('RevitNodes') import Revit clr.ImportExtensions(Revit.GeometryConversion) #import transactionManager and DocumentManager (RevitServices is specific to Dynamo) clr.…
