# Extract geometry from Revit. CSS difference

**URL:** <https://forum.dynamobim.com/t/extract-geometry-from-revit-css-difference/48018>\
**Category:** DesignScript\
**Created:** [March 12, 2020, 10:29am UTC](https://forum.dynamobim.com/t/extract-geometry-from-revit-css-difference/48018 "2020-03-12T10:29:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcinLas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcinlas/32/47418_2.png) [@MarcinLas](https://forum.dynamobim.com/u/MarcinLas)\
**Post date:** [March 12, 2020, 10:29am UTC](https://forum.dynamobim.com/t/extract-geometry-from-revit-css-difference/48018/1 "2020-03-12T10:29:19Z")

</div>

Hello,

I’ve encountered a problem I cannot explain.  
I try to extract geometry from Revit (start/endpoint coordinates of beams/columns). When it comes to beams it’s easy:

1. Element.GetLocation (Dynamo line)
2. Get startpoint, endpoint (include Z offset)

But columns are a different story. First I tried:

1. Element.GetLocation (Dynamo point).
2. Extract X,Y from points above and take Z coord from “Top Level” and “Base Level” + (top/base offset)

Result of that approach (screenshot below) results in some Z coord shift.

(_Red solids are Element.Geometry - solids from Revit elements_  
_Grey cylinders are created based on points from steps above_)

 ![dynForumLVL](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/8/e8a9e77c52abd9ca4f5f063b80868fd6796ed9fc.png)

Second try, successful one:

1. Element.GetLocation (Dynamo point) as a **base point**
2. Extract X,Y,Z from points above and add “ **Lenght** ” parameter to Z coord.  
 ![dynForumLength](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/e/4e7ce71dc26c30987050052dcd7968a60536559a.png)

Why Dynamo’s elevation is not synchronized with Revit’s elevation?
