Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

arcpy.ExtractData_production does not work in Python GUI?

$
0
0
Code:

>>> arcpy.ExtractData_production("'C:\\Temp\\Python\\GRSM_20140326075058.gdb\\Boundaries_And_AOIs\\grsm_bndry_polygon'","C:\\Temp\\Python\\GRSM_20140326075333.gdb","DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","")


<Result 'C:\\Temp\\Python\\GRSM_20140326075333.gdb'>


Works fine in the Arc Map Python window.

Per the ESRI help for Extract Data (Production Mapping) one could conclude that

Code:

>>> import arcpy
>>> arcpy.CheckOutExtension("Foundation")
u'CheckedOut'
>>> arcpy.ExtractData_production("C:/Temp/Python/GRSM_20140326075058.gdb/Boundaries_And_AOIs/grsm_bndry_polygon","C:/Temp/Python/GRSM_20140326075333.gdb","DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","")

Would work as well in Python Shell.

Nope.

Code:

Traceback (most recent call last):
  File "<pyshell#26>", line 1, in <module>
    arcpy.ExtractData_production("C:/Temp/Python/GRSM_20140326075058.gdb/Boundaries_And_AOIs/grsm_bndry_polygon","C:/Temp/Python/GRSM_20140326075333.gdb","DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","")
AttributeError: 'module' object has no attribute 'ExtractData_production'

Tried numerous variations of back, forward, double-slash as per http://resources.arcgis.com/en/help/...0000000r000000

None worked.

So what special trick is required to get arcpy.ExtractData_production to work in Python Shell?

Viewing all articles
Browse latest Browse all 2485

Trending Articles