# Can Dynamo recognize a 2D shape in a pdf or a dwg file and place a corresponding device in Revit?

**URL:** <https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479>\
**Category:** Uncategorized\
**Created:** [November 14, 2023, 12:40am UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479 "2023-11-14T00:40:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![theodore](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@theodore](https://forum.dynamobim.com/u/theodore)\
**Post date:** [November 14, 2023, 12:40am UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/1 "2023-11-14T00:40:37Z")

</div>

Does Dynamo have the capability of recognizing a 2D shape in a pdf or a dwg file and placing a device corresponding to that shape in Revit?

---

<div class="post-metadata">

**Author:** ![pyXam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pyxam/32/163009_2.png) [@pyXam](https://forum.dynamobim.com/u/pyXam)\
**Post date:** [November 14, 2023, 2:08am UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/2 "2023-11-14T02:08:23Z")

</div>

I have seen this once here;

[![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/0/f04ff7cc95991d835f7187f38fd51f69ed7ec973.jpeg "Dynamo import pdf line styles and text") ](https://www.youtube.com/watch?v=8bUQHhXQJF0)

Not sure if this is what you were looking for.

---

<div class="post-metadata">

**Author:** ![theodore](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@theodore](https://forum.dynamobim.com/u/theodore)\
**Post date:** [November 14, 2023, 4:17pm UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/3 "2023-11-14T16:17:42Z")

</div>

Or can dynamo place a 3D family device/fixture in a revit model based on a 2D symbol/shape in a dwg background or pdf? Based on that video, it looks like it should be able to, it’d just require more complicated code?

---

<div class="post-metadata">

**Author:** ![ruben.romero](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ruben.romero/32/115842_2.png) [@ruben.romero](https://forum.dynamobim.com/u/ruben.romero)\
**Post date:** [November 14, 2023, 6:44pm UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/4 "2023-11-14T18:44:21Z")

</div>

> [@theodore](#):
>
> dwg

Dwg seems more easy process. Read a block or something specific to get in Dynamo and find location points to place families

---

<div class="post-metadata">

**Author:** ![pyXam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pyxam/32/163009_2.png) [@pyXam](https://forum.dynamobim.com/u/pyXam)\
**Post date:** [November 14, 2023, 6:51pm UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/5 "2023-11-14T18:51:27Z")

</div>

Yes.

[![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/4/b43821cf6cada3723dca6b71f8fe520dbf687524.jpeg "Revit Model Element by Bluebeam Markups (Part 2)") ](https://www.youtube.com/watch?v=7YfgWkyTTF4)

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [November 14, 2023, 11:47pm UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/6 "2023-11-14T23:47:10Z")

</div>

If you used PDF it would probably need to use image AI unless it’s vectorized - and even then it would need clean metadata, I’d say that alone makes PDF _way_ too complex in Dynamo or Revit to solve. Maybe look into how to process PDF into DWG prior, have the user position it in Revit so it has relativity to coordinate space and then as others suggested block \> object is feasible. Genius Loci has a node for this.

In the case of the example by @pyXam I assume they put work into ensuring their blocks in Bluebeam had good/equivalent names in Revit to families to be placed, and solved the positioning relationship between the two files in/out of Revit itself. The script takes in a points list in csv format for each block, which must be then translated to the Revit model space and lined up with equivalent family types, using Bluebeam Revu which is capable of this (Adobe PDF and other free viewers do not have this feature as far as I know).

Blubeam for reference:

> **[Bluebeam | Construction Software](https://www.bluebeam.com/au/)**
>
> Bluebeam construction software empowers Architecture, Engineering and Construction teams to collaborate in real time and manage projects from design to completion on any device – anywhere.

---

<div class="post-metadata">

**Author:** ![pyXam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pyxam/32/163009_2.png) [@pyXam](https://forum.dynamobim.com/u/pyXam)\
**Post date:** [November 14, 2023, 11:53pm UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/7 "2023-11-14T23:53:06Z")

</div>

Correct.

@theodore The question asked was “Is it possible” and it certainly is, but not without a whole lot of background work outside of the Dynamo Enviroment.

You have the two videos that should lead you in a direction from which you can asses if this is something you want to try achieve.

If you come stuck while trying to atempt this, come back to the forums and we can try to help you 🙂

Good luck! and have fun!

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [November 14, 2023, 11:56pm UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/8 "2023-11-14T23:56:41Z")

</div>

I believe if the user could create an anchor point in Revit that correlates to the Blubeam origin, and aligns block/family names it would mainly be correlating CSV output data to Revit. Aside from setting up good Blubeam block names and Revit family equivalents the rest wouldn’t be too bad.

---

<div class="post-metadata">

**Author:** ![pyXam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pyxam/32/163009_2.png) [@pyXam](https://forum.dynamobim.com/u/pyXam)\
**Post date:** [November 15, 2023, 12:01am UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/9 "2023-11-15T00:01:41Z")

</div>

You’re forgeting about the part where the the person generating the Mark-ups cannot simply “Change their ways” after working in the industry for 30 years…

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a202a16cb04aa001e5df33a0449a55d14321e29c.jpeg)

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [November 15, 2023, 12:11am UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/10 "2023-11-15T00:11:24Z")

</div>

Haha damn you got me with that meme.

Yes that is usually the first barrier in my experience, then getting people to develop clean/predictable systems and not just duplicating things and leaving Copy after their name.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [November 15, 2023, 12:22am UTC](https://forum.dynamobim.com/t/can-dynamo-recognize-a-2d-shape-in-a-pdf-or-a-dwg-file-and-place-a-corresponding-device-in-revit/95479/11 "2023-11-15T00:22:10Z")

</div>

Garbage in  
Garbage out

At some point along the line, a person is going to have to put in effort to get meaningful data.

One possible thing to consider would be leveraging computer vision to identify the symbols in the markups, and provide a UI to map each symbol to a detail component or family. I have done the later with DWG data, but that is much easier to extract as blocks already know relative position and orientation.
