<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Accessing ArcPad geoprocessing tools from external Python scripts in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/accessing-arcpad-geoprocessing-tools-from-external/m-p/42960#M313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to automate a checkout/in process with the ArcPad toolbox, having followed the instructions &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/33434/python-scripting-for-arcpad-checkin" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt; to expose the tools to Python in my ArcGIS 10.1 installation. It appears to work if I use the old 9.3 arcgisscripting module to find the tools. This all works as intended (but poorly implemented IMO - what happened to consistency?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I want to get this working on an always-on machine (our client's server, running ArcGIS Server, ArcGIS Desktop) to enable scheduling of the script after survey data is received, but the same script does not work on that machine. I checked the ArcToolbox tool for ProcessArcPad_Project and this worked fine, though exporting it from a model to Python script gives me a script which fails. I presume that there may be something I have missed with it being Server + Desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using arcpy (i.e. exported from modelbuilder):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
mxd = 'My map.mxd'
arcpy.ImportToolbox(r'C:\Program Files (x86)\ArcGIS\ArcPad10.0\DesktopTools10\ArcPad Tools.tbx')
arcpy.ProcessArcPadProject_ArcPad(mxd, 'true')
.............................................................................

Traceback (most recent call last):
&amp;nbsp; File "X:\Work\Projects\Green Areas\SURVEY\GIS\Scripts\arcpad_checkout.py", line 30, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ProcessArcPadProject_ArcPad(mxd, 'true')
TypeError: ProcessArcPadProject() takes no arguments (2 given)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using arcgisscripting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcgisscripting
mxd = 'My map.mxd'
gp = arcgisscripting.create()
gp.ProcessArcPadProject_ArcPad(mxd, 'true')
...........................................................

Traceback (most recent call last):
&amp;nbsp; File "X:\Work\Projects\Green Areas\SURVEY\GIS\Scripts\arcpad_checkout.py", line 29, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.ProcessArcPadProject_ArcPad(mxd, 'true')
AttributeError: Object: Tool or environment &amp;lt;ProcessArcPadProject_ArcPad&amp;gt; not found&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong on the server. Have I accidentally done something right on my own machine?!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:39:10 GMT</pubDate>
    <dc:creator>JamesNunn</dc:creator>
    <dc:date>2021-12-10T21:39:10Z</dc:date>
    <item>
      <title>Accessing ArcPad geoprocessing tools from external Python scripts</title>
      <link>https://community.esri.com/t5/arcpad-questions/accessing-arcpad-geoprocessing-tools-from-external/m-p/42960#M313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to automate a checkout/in process with the ArcPad toolbox, having followed the instructions &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/33434/python-scripting-for-arcpad-checkin" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt; to expose the tools to Python in my ArcGIS 10.1 installation. It appears to work if I use the old 9.3 arcgisscripting module to find the tools. This all works as intended (but poorly implemented IMO - what happened to consistency?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I want to get this working on an always-on machine (our client's server, running ArcGIS Server, ArcGIS Desktop) to enable scheduling of the script after survey data is received, but the same script does not work on that machine. I checked the ArcToolbox tool for ProcessArcPad_Project and this worked fine, though exporting it from a model to Python script gives me a script which fails. I presume that there may be something I have missed with it being Server + Desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using arcpy (i.e. exported from modelbuilder):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
mxd = 'My map.mxd'
arcpy.ImportToolbox(r'C:\Program Files (x86)\ArcGIS\ArcPad10.0\DesktopTools10\ArcPad Tools.tbx')
arcpy.ProcessArcPadProject_ArcPad(mxd, 'true')
.............................................................................

Traceback (most recent call last):
&amp;nbsp; File "X:\Work\Projects\Green Areas\SURVEY\GIS\Scripts\arcpad_checkout.py", line 30, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ProcessArcPadProject_ArcPad(mxd, 'true')
TypeError: ProcessArcPadProject() takes no arguments (2 given)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using arcgisscripting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcgisscripting
mxd = 'My map.mxd'
gp = arcgisscripting.create()
gp.ProcessArcPadProject_ArcPad(mxd, 'true')
...........................................................

Traceback (most recent call last):
&amp;nbsp; File "X:\Work\Projects\Green Areas\SURVEY\GIS\Scripts\arcpad_checkout.py", line 29, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.ProcessArcPadProject_ArcPad(mxd, 'true')
AttributeError: Object: Tool or environment &amp;lt;ProcessArcPadProject_ArcPad&amp;gt; not found&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong on the server. Have I accidentally done something right on my own machine?!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:39:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/accessing-arcpad-geoprocessing-tools-from-external/m-p/42960#M313</guid>
      <dc:creator>JamesNunn</dc:creator>
      <dc:date>2021-12-10T21:39:10Z</dc:date>
    </item>
  </channel>
</rss>

