PDA

View Full Version : extract text from dwg to excel



SteveBMe
2008-05-06, 06:45 PM
Hello all.
While I've been using AutoCAD for a few years, I've never had the need to do the following before.
I want to extract text from a multi-text, or a D-text string, and have it export to an excel file-- as text.
Thus far, each time I go to do this by selecting the lines of text, and ctrl+c, it essentially gives me an image (Excel appears to treat it as an image) file that I then must enter the data manually in to Excel, by reading the "image" file myself.

I've posted on the MSDN newsgroups, and found that it won't work from that end, so I looked around the help file, and couldn't find anything that would explain how I could do this.
I did a search here and found where someone back in early 2006 wanted to pull the layer info out and import that to Excel as a text file. I was not however able to easily identify anything that I wanted to do.

http://forums.augi.com/showthread.php?t=31599&highlight=export+text%2C+dwg%2C+excel%2C+text

my general search parameters returned the following.

http://forums.augi.com/search.php?searchid=223506

Search: Key Word(s): export, text,, dwg,, excel,, text

I tried making it a complete sentence, but it kept telling me I didn't provide enough words, and was under the minimum required 3 words so I wound up removing words like do, and to.

We're using Map3d 2007, and Office 2007 here.
Thank you for your responses.

I've attached a word doc. with a screen shot of what I have. The image is green (something to let me know I processed the data already.) The text to the left of the green dwg data is my entries of the information I want to import as text to excel.

ozzy84
2008-05-06, 08:02 PM
one way (without some add-on)

1. in Acad: edit the MText object, in editor, select required text and ctrl+c
2. in NotePad: paste into text editor, save as *.txt
3. in Excel: Data -> Get External Data -> Import Text File

browse for your *.txt file, experiment with delimiters

this should get you going

SteveBMe
2008-05-06, 11:05 PM
Thanks.
While it will indeed get me started, it's an awfully tedious manner of handling it.
Which was why I wound up using the format I have (I guess I get my choice of tedium... on the front side, or the back).

jaberwok
2008-05-07, 12:28 AM
Isn't "text" an option under Paste-Special in Excel?