I have been developing a script to automate my ArcPad checkin/checkout processes. My problem is that I am having trouble getting arcpy to recognize the ArcPad tools from the command line. From the example below you can see the specific error I'm getting. There is however some recognition that the tools exist as the help window actively shows the tool and parameters, giving help suggestions while you type as it would for any other tool. I have also followed the recommendations from this post:
Python scripting for ArcPad Checkin
I have about 100 checkin/checkouts to perform which is why I'd rather automate the process.
Example:
>>> arcpy.ArcPadCheckout_ArcPad("points_2015","","","","checkout_points.axf")
Runtime error
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files (x86)\ArcGIS\ArcPad10.0\DesktopTools10\ArcPad Tools.tbx", line 66, in ArcPadCheckout
AttributeError: Object: Tool or environment <ArcPadCheckout_ArcPad> not found
>>>
Attempt from example given below, similar error message:
>>> import arcpy
>>> from arcpy import env
>>> env.workspace="H:/path_to_my_geodatabase.gdb/"
>>> arcpy.AddToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.1\ArcToolbox\Toolboxes\ArcPad Tools.tbx")
<module 'ArcPad' (built-in)>
>>> arcpy.ArcPadCheckout_ArcPad("points_2015","","","","checkout_points.axf")
Runtime error
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\program files (x86)\arcgis\desktop10.1\ArcToolbox\Toolboxes\ArcPad Tools.tbx", line 66, in ArcPadCheckout
AttributeError: Object: Tool or environment <ArcPadCheckout_ArcPad> not found
>>>
ArcPad Data Manager
extension?