I figured out that Editor or Notepad etc. is able to load them all at once .... quick and easy to edit a txt file, which i needed for building a dtm in cad.
Most likely you are hitting the limit of Excel. Can you split your dbf in half and read in each half separately? Once you get them into a data set (assuming a file GDB) append them back together.
My original dbf table has ca. 2mio. points. Excel loads just ca. 1.04mio. What can i do?
The 'Export to Excel' model tool mentioned here: http://blogs.esri.com/Dev/blogs/arcgisdesktop/archive/2010/08/10/Working-with-Microsoft-Excel-in-ArcGIS-Desktop.aspx and available here: http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=95009B25-1422-2418-7FB5-B8638ECB2FA9 doesn't work with ArcGIS 10, as it relies on the old arcgisscripting library. I have fixed it up to use the new arcpy package, attached.Remember you will need to download and install the xlwt package, available http://pypi.python.org/pypi/xlwt, for Python to be able to export to Xls. If your Xlwt installation fails, check out my post in this thread: http://forums.arcgis.com/threads/34418-Is-it-possible-to-install-other-Python-distributions-on-top-of-the-ArcGIS.I have only tested it on one file, and haven't tested the CSV output, so let me know if you have any issues.
Does anyone have suggestions for tweaking the export feature to allow creation of multiple sheets within a single workbook? I
I am looking for a solution to this issue as well.
Is it possible to append multiple attribute tables into a single worksheet? Or will this re-write the worksheet each time it's called?
The tool did not immediately work for me.I get:Traceback (most recent call last): File "C:\Users\rob\Documents\ArcGIS\RobToolBoxes\Scripts\tabletoexcel.py", line 85, in <module> export_to_xls(dataset_name, output_file) File "C:\Users\rob\Documents\ArcGIS\RobToolBoxes\Scripts\tabletoexcel.py", line 58, in export_to_xls worksheet = workbook.add_sheet(os.path.split(dataset)[1]) File "C:\Python26\ArcGIS10.0\lib\site-packages\xlwt\Workbook.py", line 345, in add_sheet raise Exception("invalid worksheet name %r" % sheetname)Exception: invalid worksheet name u'ACS_TransportGreaterPortland_byCBG'Completed script TableToExcel...Failed to execute (TableToExcel).Failed at Wed May 29 12:02:05 2013 (Elapsed Time: 9.00 seconds)
worksheet = workbook.add_sheet(os.path.split(dataset)[1])
worksheet = workbook.add_sheet(os.path.split(dataset)[1][:31])
You shouldn't have to program anything. Extract the contents of the zip file to a location. Navigate the ArcCatalog window (in ArcMap) to that location, expand the toolbox - called "Additional Conversion - Generic Tools" - then double click on the "Table to Excel" function in there. The parameters are already set up.
Does anyone have suggestions for tweaking the export feature to allow creation of multiple sheets within a single workbook? I'm building a model to export records that fall within a series of distance buffers and would like them to appear as individual sheets within a single XLS file for analysis, rather than having to work across multiple XLS files.I've altered the Table to Excel code to set the sheet name to that of the input dataset to uniquely identify each sheet, but when I try to run the tool as a batch, the process returns an overwrite error and terminates. If I set the geoprocessing options to allow overwrite, the batch runs, but the resulting XLS file only has the sheet from the last dataset processed.Given the alterations to the original input parameters I've described, could the code be modified to follow some variation of the process below?Inspect the output directory for a file with the same name as the output filename parameter:[INDENT]If no, create the XLS file with the exported sheet named for the input dataset and save the file;[/INDENT][INDENT]If yes, skip the creation step and go directly to adding the dataset sheet, and save the file.[/INDENT]I'd imagine that with this modification, the script could be run once through all the datasets by incorporating some sort of "for...in..." iteration through the list of datasets, but I'd also like to incorporate something to prevent the overwrite problem if I come back and run the model with some new variables (i.e. I'd like them to be added as new sheets to the same "master" XLS file).I've seen scripts that can collect multiple CSV files as sheets within a single XLS document, but it seems like a somewhat clunky workaround.Any tips/tricks/pointers are appreciated!
cd c:\python26\xlwt-0.7.4\
C:\Python26\xlwt-0.7.4>setup.py install
Installation: �?� Any OS: Unzip the .zip file into a suitable directory, chdir to that directory, then do "python setup.py install". �?� If PYDIR is your Python installation directory: the main files are in PYDIR/Lib/site-packages/xlwt, docs are in the doc subdirectory. �?� If os.sep != "/": make the appropriate adjustments.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.