Python scripting for ArcPad Checkin

477
1
09-13-2012 08:22 AM
RichardGwozdz
New Contributor
I can use ArcGIS Desktop (10.1) model builder to leverage the ArcPad Check In Tool. When I run the model it executes successfully. When I export the model as python I get this code:

import arcpy

# Local variables:
Test02_axf = "C:\\aWorkspace\\ESA\\ArcPad\\AXFs\\Test02.axf"

# Process: ArcPad Check In
arcpy.ArcPadCheckin_ArcPad(Test02_axf, "", "")
However, when I run this code in the python window I get:


Runtime error
Traceback (most recent call last):
File "<string>", line 8, in <module>
AttributeError: 'module' object has no attribute 'ArcPadCheckin_ArcPad'
And yes indeed arcpy has no function named ArcPadCheckin_ArcPad. So model builder must be exporting erroneous code.

Does someone out there know what the issue is here? Is there really anyway to do this operation with python?
Tags (3)
0 Kudos
1 Reply
RichardGwozdz
New Contributor
it works with the old pre-arcpy solution


import arcgisscripting
# Create the Geoprocessor object
gp = arcgisscripting.create()


# Local variables:
Test02_axf = "C:\\aWorkspace\\ESA\\ArcPad\\AXFs\\Test02.axf"

# Process: ArcPad Check In
gp.ArcPadCheckin_ArcPad(Test02_axf, "", "")
0 Kudos