AnsweredAssumed Answered

Quick export CSV w/ headers via python

Question asked by gmohler on Jun 22, 2012
Latest reply on Jun 23, 2012 by gmohler
Hello,

I'm looking to export a large feature class (55k+ records) to csv with headers.  Can anyone help with how to set the parameters in python?
Using Arcmap and looking in the results windows after setting parameters gives:

CSV,S:\\Folder,"RUNTIME_MACROS,""APPEND,No,FIELD_NAMES,yes,SEPARATOR,"""","""",EXTENSION,csv"",META_MACROS,""DestAPPEND,No,DestFIELD_NAMES,yes,DestSEPARATOR,"""","""",DestEXTENSION,csv"",METAFILE,CSV,COORDSYS,,__FME_DATASET_IS_SOURCE__,false"

This gives me what i need, but I would rather not open Arcmap.  I've tried setting these items above a few ways to no avail.
I just need the input, output, and headers to be written.  From python with just input and output gives me a csv with no headers.

Python 2.6 with arc10.0.

Thanks for any help.

Outcomes