kyanuk1

ArcMap Python Window for quick commands

Discussion created by kyanuk1 on Aug 31, 2012
Latest reply on Aug 31, 2012 by JScheirer-esristaff
Hello;

I've been reading into how to use Python's optparse (http://docs.python.org/library/optparse.html) to write a few quick and simple "unix-style" commands (stringing some queries, writing some text files of attributes, etc), and I was wondering if anyone knows if ArcMap's Python Window can support this?

I know using python in Windows cmd, the user would be able to use an optparse script as 'python <script> -f output.txt', but I'm not sure whether this can be done with the Python Window ... I've seen optparse used with arcpy:

http://resources.arcgis.com/en/help/main/10.1/index.html#//002q000000rp000000

However, I don't believe this is used within ArcMap.

Any information would be much appreciated! :)

Outcomes