Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Parsing multiple files

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
1101 Views, 5 Replies

Parsing multiple files

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 Smiley Wink ) 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!

5 REPLIES 5
Message 2 of 6
devitg
in reply to: Anonymous

Please show us what did you did up now , and some few samples.dwg 

Message 3 of 6
Anonymous
in reply to: Anonymous

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

 

Message 4 of 6
maratovich
in reply to: Anonymous

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.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
Message 5 of 6
Anonymous
in reply to: maratovich

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.

Message 6 of 6
maratovich
in reply to: Anonymous

We need an example of your file, and specify what to look for.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report