Place box based on picture

I work for an electrical contractor and we get tons of drawings that look like this:

This little annotation here is a power receptical:


Which is basically this:

One of the things I do all the time is print out the pdf into a png format and put it as a background file in Revit. I then put a premade family for that receptical on all each symbol (all normal so far).

My question is this: Is it possible to write something in dynamo so that I can press a button, it’ll look at the picture, find the symbol and put a box down at each one? If so where to start? I’m more then willing to do all the work on this if someone can just point me in the right direction.

Can you provide a sample PDF? I have an idea.

You should start by looking into the DynamoPDF package on Github. :wink:
I have had some great success implementing these kind of workflows in structural engineering applications.



Here you go: E4.1.4 - BP4_RECEPTACLES PLAN FIRST LEVEL - AREA 4.pdf (3.2 MB)


Thanks. I’ll look into it.

So it looks as if the package noted above doesn’t read the raw geometry from inside the PDF, focusing mostly on text content. It appears to utilize the iText api to parse the data out of the PDF, which appears to have the desired function but I’m not sure those are converted to nodes in the package yet (least not that I can see). Importing into AutoCAD and reading the DWG via LinkDWG package may be one workaround in the meantime, but the import is SUPER slow so… well I’m still thinking on this one.

1 Like