Hey guys,
Not sure if I'm even looking in the right place, but just maybe. . .
My Goal:
Parse hundreds/maybe thousands of drawings for keywords, and organize a table with each row referring to a job/drawing. If a keyword occurs, put that SPECIFIC keyword into a SPECIFIC column. . .
My Progress:
So far, I actually have a python script that will parse a text file and generate the correct .csv file that would make this happen. . . But I can't get it to read the dwg's. 😞 I've tried using the pyautocad module for python, but can't get it to work at all. I think it's obsolete.
My Question:
So what are my options for creating a table like this, or parsing files? If I could just get a text file from a dwg., I may be able to work with that. Seems like some extra leg work though.
I'm open to learning(using the term lightly ) a new language if that's what it takes. I'm aware of realDWG, but I'd like to have something working in the next month or 2. And C++ or .NET seem too robust for me.
Thanks!
Hi,
did you find a solution for parsing multiple DWG and/or DXF files?
I have the same task and would appreciate to know about any existing solution
Dan
There are several possible solutions.
Much depends on your file, and on what exactly you need to look for.
The simplest thing is to save the files in PDF, and then do a search.
These are electrical and mechanical drawings. We need to extract technical details as well from the drawing content as info from the header. Need to really go into the entities of the dwg file. Can use instead of dwg the dxf, but pdf will not suffice, I am afraid.
We need an example of your file, and specify what to look for.
Can't find what you're looking for? Ask the community or share your knowledge.