Exporting Text by layer to an Excel File

Exporting Text by layer to an Excel File

Anonymous
Not applicable
2,598 Views
25 Replies
Message 1 of 26

Exporting Text by layer to an Excel File

Anonymous
Not applicable

HI,

 

I read the post for when this question was previously asked and do not understand it.  I simply need to export all text BY LAYER in my drawing, preferably to a format that I can import into Excel.  What is the easiest way to do this please?  Thanks

0 Likes
2,599 Views
25 Replies
Replies (25)
Message 2 of 26

antoniovinci
Advisor
Advisor

Command: _MAPEXPORT

 

adding the property "LAYER" as Object Data.

 

Let's suppose you have N layers: if you open the resulting shapefile in a Gis editor (e.g. Qgis) you can automatically split it into N indipendent sub-shapes, by layer, yielding N files .DBF loadable in Excel.

Feel free to upload here a small drawing of yours: I can demonstrate the above technique quickly, sir.

0 Likes
Message 3 of 26

Anonymous
Not applicable

thanks because I didn't understand a word you just said 🙂

0 Likes
Message 4 of 26

antoniovinci
Advisor
Advisor

wings1080 wrote:

thanks because I didn't understand a word you just said


You're right, man, I apologize for my wretched english 😞

In the attachment, you got the promised N=7 files .DBF, loadable in Excel.

0 Likes
Message 5 of 26

Anonymous
Not applicable

THANKS but hmm, I have 61 layers in my drawing, I was hoping you could show me HOW you did this so I can do it in the future, why were there only 7 files that you sent?

0 Likes
Message 6 of 26

Anonymous
Not applicable

I guess what I was hoping for was, for example, a list of all the p101, p123, p479 values etc...  in the 2005_probing_completed layer for all layers ...

0 Likes
Message 7 of 26

antoniovinci
Advisor
Advisor
Accepted solution

Well, your drawing contains pure text in only 7 layers.

The other ones look like text, but they're block attributes.

If you _BURST them, you can get the following attachment: check it out, and if it's good for you, I'll describe how-to.

0 Likes
Message 8 of 26

Anonymous
Not applicable

wow, thanks so much!  this is exactly what I need ... and the "how to" would be great, thanks!

0 Likes
Message 9 of 26

antoniovinci
Advisor
Advisor
Accepted solution

In Autocad Map:

  1. command _BURST (in order to explode the embedded block attributes into Dtext objects)
  2. command _MAPEXPORT => choose TEXT type => in the Data tab, select LAYER as Properties => save as SHP file


In Qgis:

  1. open up the brand new shapefile
  2. menu VECTOR => DATA MANAGEMENT TOOLS => SPLIT VECTOR LAYER => UNIQUE ID FIELD => choose LAYER
Message 10 of 26

Anonymous
Not applicable

obviously lol 😉  thanks again!

0 Likes
Message 11 of 26

braudpat
Mentor
Mentor
Accepted solution

 

Hello from France

 

An other method with a Lisp/VLisp program that will generate an CSV/XLS file !

So after it's easy to sort by layer, by entities, by value, by anything ...

 

I use it often because DataExtraction is not always the fastest method to extract Text, MText, Attribute !?

 

Antonio is the King of MAP + QGIS !

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes
Message 12 of 26

antoniovinci
Advisor
Advisor

Not bad, Monsieur: would you please share with us your Vlisp..?

0 Likes
Message 13 of 26

braudpat
Mentor
Mentor

 

Hello Antonio

 

At your order !

 

This beautiful VLisp "EXPORT-TEXT" routine is from (gile) ! ... Thks Gilles !!

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes
Message 14 of 26

antoniovinci
Advisor
Advisor

Merci beaucoup, mais... it doesn't work in my old Map2006 😞

Cambronne !!

0 Likes
Message 15 of 26

braudpat
Mentor
Mentor

 

Hello Antonio

 

It works on my MAP 2015, 2014, 2013, 2012, 2011, 2010 !

 

Do you reach the dialog box to specify the output filename ?

If YES, into the filename please write something like :  ANT.TXT

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 16 of 26

antoniovinci
Advisor
Advisor

braudpat wrote:
If YES, into the filename please write something like :  ANT.TXT 

 

Well done, it works if I manually add the TXT/CSV extension..!

0 Likes
Message 17 of 26

braudpat
Mentor
Mentor

 

Hello

 

YES you MUST write .TXT or .CSV with the filename into the dialog box ...

 

It's a very small default of this beautiful routine from (gile) !

 

EXPORT-TEXT works on Texts, MTexts, Attributes . I like it !!

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes
Message 18 of 26

Anonymous
Not applicable

Sorry for this most rudimentary question but how do I load and then run this program in AutoCad Map 3D 2015?

0 Likes
Message 19 of 26

braudpat
Mentor
Mentor

 

Hello

 

1) With your keyboard :  APPLOAD  <Enter>

Browse your PC, Select the file "EXPORT-TEXT.lsp" then Load then OK/Close 

 

2) With your keyboard :  EXPORT-TEXT  <Enter>  

And play ... 

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes
Message 20 of 26

Anonymous
Not applicable

thank you, I did as you directed and selected "ALL" and it said 1681 objects selected, I exported the csv file and opened it and this was the result, what did I do wrong?

 

 

0 Likes