Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extract text (Count of text) from dwg to excel

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
nck5678
305 Views, 5 Replies

Extract text (Count of text) from dwg to excel

Hello All,

I need assistance and would appreciate some help.

 

I have a task, wherein I need to extract data from AutoCAD drawing in to excel.

The idea is to count the number of instances of Text (Single line or ML) within AutoCAD drawings, and write it against corresponding table value in excel.

 

For E.g., If a have drawing layout with multiple electric panels (A1, B2, C3, etc.) where A1 is name of one panel, in the excel file I wish to have a count of total A1 in the drawing. (I don't want all text's to be exported but only the one's I wish to count to be counted).

5 REPLIES 5
Message 2 of 6
VincentSheehan
in reply to: nck5678

Try EATTEXT then step through the wizard.

 

  1. Create a new data extraction.
  2. Save the file.
  3. Select the text.
  4. Extract from objects.
  5. Uncheck everything except but Value and Contents.
  6. Set column option.
  7. Export to Excel.

It seems the Value only reads Text objects. The Contents reads MText objects.

Eattext-4.png

Eattext-5.png

Vincent Sheehan

Sr. Civil Designer
Poly In 3D Blog

Message 3 of 6
pendean
in reply to: nck5678


@nck5678 wrote:

...The idea is to count the number of instances of Text (Single line or ML) within AutoCAD drawings, and write it against corresponding table value in excel....


This LISP will get you started on your journey

https://lee-mac.com/tcount.html 

 

Then... https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Exporting-table-to...

Message 4 of 6
nck5678
in reply to: VincentSheehan

Hello, Thank you for reply.

 

However, I tired this initially but the issue is that this extracts the entire text. If there's a series of string and I wish to count the text from it, it gets difficult.

 

Message 5 of 6
nck5678
in reply to: pendean

Hello @pendean , Thank you for quick reply.

 

This LISP file does sounds good, but I can see there's a copyright to this LISP routine. Is it permissible to use these routines for office work? 

Message 6 of 6
pendean
in reply to: nck5678

All the LISP there is free to use: the copyright is for 'stealing' the code and passing it off as your own 🙂

Enjoy!


There is an attribute version of the LISP too if you need that, plus so many other cool tools.

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

Post to forums  

Forma Design Contest


AutoCAD Beta