# Get xref object geometry to dynamo

**URL:** <https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189>\
**Category:** Civil 3D\
**Created:** [May 29, 2020, 8:13am UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189 "2020-05-29T08:13:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bertrand.savarit](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bertrand.savarit/32/103266_2.png) [@bertrand.savarit](https://forum.dynamobim.com/u/bertrand.savarit)\
**Post date:** [May 29, 2020, 8:13am UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189/1 "2020-05-29T08:13:02Z")

</div>

Hello,

I would like to get in Dynamo the geometry of objects included in an xref of my drawing, would it be possible?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [May 29, 2020, 9:10pm UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189/2 "2020-05-29T21:10:09Z")

</div>

Hi,

Depending what you need, the node ‘Select Model Element’ connected to ‘Get Element Geometry’ will work… But if you look at the BiMorph package you will find more sophisticated nodes which might help 🙂

Cheers,

Mark

---

<div class="post-metadata">

**Author:** ![bertrand.savarit](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bertrand.savarit/32/103266_2.png) [@bertrand.savarit](https://forum.dynamobim.com/u/bertrand.savarit)\
**Post date:** [June 10, 2020, 4:25pm UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189/3 "2020-06-10T16:25:26Z")

</div>

Hello,

Thanks for your answer but i dont have any Select model Element node (i’m working with Dynamo for Civil 3D) …

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [June 10, 2020, 7:06pm UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189/4 "2020-06-10T19:06:17Z")

</div>

An XREF is a block, so you can get the block contents:

 ![XREF Contents](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/9/e920540ae0295c6b9916a428ca40a9df17e1a41c.png)

---

<div class="post-metadata">

**Author:** ![bertrand.savarit](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bertrand.savarit/32/103266_2.png) [@bertrand.savarit](https://forum.dynamobim.com/u/bertrand.savarit)\
**Post date:** [June 11, 2020, 2:01pm UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189/5 "2020-06-11T14:01:35Z")

</div>

Hello,

I think i am missing something but i cant find what, you can see below that i have a null result…

 ![bug xref](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/d/cd8d6050fd0a3cf509dc5960be4bc5529fb59245.png)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [June 11, 2020, 2:33pm UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189/6 "2020-06-11T14:33:37Z")

</div>

The block name input should be the actual name of the XREF, not the layer that it is on. So in this case, it looks like the name is “Bati”.

---

<div class="post-metadata">

**Author:** ![bertrand.savarit](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bertrand.savarit/32/103266_2.png) [@bertrand.savarit](https://forum.dynamobim.com/u/bertrand.savarit)\
**Post date:** [June 11, 2020, 2:58pm UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189/7 "2020-06-11T14:58:20Z")

</div>

Thanks a lot! I’m such a newbee…

Now more difficult maybe : would it be possible to filter the objects of my XREF among their layer in the wref?

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [June 11, 2020, 7:05pm UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189/8 "2020-06-11T19:05:38Z")

</div>

> [@bertrand.savarit](#):
>
> would it be possible to filter the objects of my XREF among their layer in the wref?

Sure, you can get the object layer and filter just like you might do with the current drawing. Maybe something like this.

 ![Layer Filter](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/0/c09f4c6b0378b7c55f3fc29664ed56f1d8bfb443.png)

---

<div class="post-metadata">

**Author:** ![bertrand.savarit](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bertrand.savarit/32/103266_2.png) [@bertrand.savarit](https://forum.dynamobim.com/u/bertrand.savarit)\
**Post date:** [June 12, 2020, 7:05am UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189/9 "2020-06-12T07:05:29Z")

</div>

Thanks a lot @zachri.jensen i’m starting with dynamo and i hope that one day i wiil be able to help people like you did.

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [June 12, 2020, 12:09pm UTC](https://forum.dynamobim.com/t/get-xref-object-geometry-to-dynamo/51189/10 "2020-06-12T12:09:08Z")

</div>

@bertrand.savarit you are welcome!
