Jump to content

Export DWG file with .txt or .CSV


DMS

Recommended Posts

AutoCAD 2009 Full Version

 

Is there any way of exporting a drawing file (.dwg) along with a .txt or .csv file that contains the text within the drawing. Then saving both these files to a specific folder.

 

Your help would be appreciated.....

Link to comment
Share on other sites

What would this be used for? I think I've seen routines here for exporting data to Excel, would that work? If we get a bit more information it's easier to come up with a good answer.

Link to comment
Share on other sites

Tiger, thanks for your reply.

 

This will be used to import the dwg file into a document management system.

 

The dwg file will be stored and the txt or csv file will contain the drawings reference information such as drawing change information, version number, drawing references, etc.

 

As long as I can save both dwg and csv together in one folder that would do the trick.

Link to comment
Share on other sites

Would that information be in the drawing in let's say a textbox or a attributed block or something along those lines?

Link to comment
Share on other sites

I would do a search here for extract attributes and see what you find - from the very quick search I did there was quite a few hits with a few lisps that should be able to help you. Good luck :)

Link to comment
Share on other sites

You can export extracted data to an external CSV file from within AutoCAD by using the Data Extraction wizard via the Choose Output page.

Link to comment
Share on other sites

Consult Help > Index > Type in the keyword to find: CSV files.

 

To the right, click on the Procedure tab. Both of the topics listed will assist you in accomplishing one part of your task (data extraction). You can choose to save the resultant file in any folder on your hard drive using the Browse button.

Link to comment
Share on other sites

Search here under VBA lisp forum blocks extraction I think you would need a purpose written routine to export only certain block information such as that only contained in a "Title" block. Not sure if using data extraction will dump too much info or you will need to run multiple times for different blocks.

 

The advantage of this would be that you could search 100,s of drawings in one go and write out the answers using a script put the answers say in 1 excel file then just sort file. Then you would have a history record of revisions etc. It could be patched into a "save" command so always keeps up to date every time drawing is saved.

 

Dwgno sheetno title1 title2 rev issued

12345 1 New plan Fred smith 0 today

12345 2 Floor plan Fred smith 1 yesterday

12345 3 roof plan Fred smith 01 maybe soon

 

Also search "dwg recording" "time sheets" seem to remember something about that recording details and how to do it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...