Select to view content in your preferred language

script / toolbox for exporting table to a tab-delimited .txt file?

1809
6
Jump to solution
02-15-2011 09:35 AM
RoyElis
Emerging Contributor
I'm trying to export the data from an Attribute Table to a tab-delimited text file (.CSV would be ok too).  It's incredibly easy to do this through the menus in ArcMap: in the Table of Contents view, I open the Attribute Table, then go to the Table Options menu, choose "Export..." and then choose the "text" option when selecting the path for the output table. Done. 

But I have 100s of tables to export, so I want to write a script to loop through them all.  I've looked in the existing Toolboxes in search of the right ArcPy command, but all I can find are tools that export to .dbf files.  Am I missing something or do I need to write something from scratch?

Thanks for any suggestions you can offer!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
LoganPugh
Frequent Contributor
0 Kudos
6 Replies
LoganPugh
Frequent Contributor
Take a look at Table to Table (Conversion).
0 Kudos
LoganPugh
Frequent Contributor
Try this script (Additional Conversion - Generic Tools) on the Script Tool Gallery: http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=95009B25-1422-2418-7FB5-B8638...
0 Kudos
RoyElis
Emerging Contributor
Thanks!  This looks perfect.  I'll give it a try and post the results.
0 Kudos
RoyElis
Emerging Contributor
Yup - it worked perfectly!  Thanks so much for your help!
0 Kudos
VanessaS
Emerging Contributor
I was wondering if you have upgraded this script for the v10 model builder?

Thanks in adavance.
0 Kudos
curtvprice
MVP Alum
I was wondering if you have upgraded this script for the v10 model builder?

Thanks in adavance.


Most script tools should work fine in Arc 10, including in Model Builder.
0 Kudos