# Query of Objects inside an inserted DWG-file in Revit

**URL:** <https://forum.dynamobim.com/t/query-of-objects-inside-an-inserted-dwg-file-in-revit/9963>\
**Category:** Revit\
**Tags:** revit, dwg, dynamo\
**Created:** [February 28, 2017, 2:34pm UTC](https://forum.dynamobim.com/t/query-of-objects-inside-an-inserted-dwg-file-in-revit/9963 "2017-02-28T14:34:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![babysatch](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@babysatch](https://forum.dynamobim.com/u/babysatch)\
**Post date:** [February 28, 2017, 2:34pm UTC](https://forum.dynamobim.com/t/query-of-objects-inside-an-inserted-dwg-file-in-revit/9963/1 "2017-02-28T14:34:24Z")

</div>

Hi,

I encounter the following problen, which I unfortunately cannot solve:

I have a DWG-File containing 13 closed polylines (see the figure).

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/2/d286268a33bd94296fd632e14e93a7315f21c350.jpg)

After I import the file into Revit, some of the polylines are sticked together and will be recognized as one line in case of a query. E. g. these two:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/5/c5c2331bcf3b61ca63d441f65891d06a714803f2.jpg)

You find both dwg-file and rvt-file attached.

[polylineproblem-2017-02-28.dwg](https://forum.dynamobim.com/uploads/short-url/8OalIwKjhTOhSLsVXvfpF9PAcNn.dwg) (40.8 KB)  
[polylineproblem-2017-02-28.rvt](https://forum.dynamobim.com/uploads/short-url/2zaQvoeO4JWQqssGZRdWkihxJ0k.rvt) (328 KB)

The background of my question ist that I want to work with the geometry of these 13 closed polylines, I want to get their geometries (polycurves) in Dynamo in order to construct floors. But revit reconizes fewer than 13 polylines.

I would be grateful of any help?

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [March 5, 2017, 7:40pm UTC](https://forum.dynamobim.com/t/query-of-objects-inside-an-inserted-dwg-file-in-revit/9963/2 "2017-03-05T19:40:21Z")

</div>

Hello babysatch,

I stumbled upon this helpful video which seems to do exactly what you are looking for:  
[https://knowledge.autodesk.com/support/autocad/learn-explore/caas/screencast/Main/Details/7ccb54c2-693f-4b27-bebd-7331d0530dfc.html](https://knowledge.autodesk.com/support/autocad/learn-explore/caas/screencast/Main/Details/7ccb54c2-693f-4b27-bebd-7331d0530dfc.html)

---

<div class="post-metadata">

**Author:** ![babysatch](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@babysatch](https://forum.dynamobim.com/u/babysatch)\
**Post date:** [March 11, 2017, 10:16pm UTC](https://forum.dynamobim.com/t/query-of-objects-inside-an-inserted-dwg-file-in-revit/9963/3 "2017-03-11T22:16:55Z")

</div>

Thank you so much. Great Help.

---

<div class="post-metadata">

**Author:** ![babysatch](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@babysatch](https://forum.dynamobim.com/u/babysatch)\
**Post date:** [March 12, 2017, 8:48am UTC](https://forum.dynamobim.com/t/query-of-objects-inside-an-inserted-dwg-file-in-revit/9963/4 "2017-03-12T08:48:11Z")

</div>

Hello T\_Pover,

do you know how I can download the lisp-file from the screencast?

In my opinion it is not available at all, is it?

Thank you.

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [March 12, 2017, 10:39am UTC](https://forum.dynamobim.com/t/query-of-objects-inside-an-inserted-dwg-file-in-revit/9963/5 "2017-03-12T10:39:15Z")

</div>

Hmm, I dont’t know about that Lisp file. You could try contacting the author of the screencast.

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [March 12, 2017, 2:00pm UTC](https://forum.dynamobim.com/t/query-of-objects-inside-an-inserted-dwg-file-in-revit/9963/6 "2017-03-12T14:00:23Z")

</div>

> [@babysatch](#):
>
> how I can download the lisp-file from the screencast?

Another way to do it would be to get data out of AutoCAD and write it to a text file. Then read the data in Dynamo.

From the video, why would we want many Floors for one level? Wouldn’t a better, old-fashioned, way to make the floor be to pick the outer lines from the DWG in the floor sketch?
