# Cannot Calculate Geometry from Spatial Elements (Rooms)

**URL:** <https://forum.dynamobim.com/t/cannot-calculate-geometry-from-spatial-elements-rooms/83640>\
**Category:** Revit\
**Tags:** python, dynamo, api, rooms, cpython3\
**Created:** [November 30, 2022, 6:29pm UTC](https://forum.dynamobim.com/t/cannot-calculate-geometry-from-spatial-elements-rooms/83640 "2022-11-30T18:29:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidMena](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@DavidMena](https://forum.dynamobim.com/u/DavidMena)\
**Post date:** [November 30, 2022, 6:29pm UTC](https://forum.dynamobim.com/t/cannot-calculate-geometry-from-spatial-elements-rooms/83640/1 "2022-11-30T18:29:28Z")

</div>

Hi there!  
I’m having trouble with some basic functions using the Revit API  
Does anyone know why Is the Function CanCalculateGeometry not working with my code?  
I have several Rooms created in the model but I’m getting this warning when trying to apply the method CanCalculateGeometry(room).  
“No method matches given arguments for CanCalculateGeometry”  
Aren’t rooms SpatialElements inside Revit?

 ![ROOMS FINISHES](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/c/8cf16ce5109d420c9088b858283430b246199480.jpeg)

Any help will be very appreciated.
