POST
|
My current environment is ArcGIS 9.3.1 SP1, ArcPad 10.0.2, and python 2.5. My test ArcPad project is from a new, clean mxd that has one shapefile attached to it with one feature in it which has 5 fields (FID, Shape*, OBJECTID, THENAMEE, and SHAPE_Leng). The mxd and shapefile is stored locally at c:\temp (simple path) I use the ArcPad Data Manager Configure Project for Geoprocessing tool (i've tried all the various settings) and set it to output to c:\temp\out. I create a Model and drag the Process ArcPad Project tool to it. I direct the tool to use the test mxd. I can run it and validate it multiple times with no errors. The output is good. I export the model to python script: import sys, string, os, arcgisscripting gp = arcgisscripting.create(9.3) # i have added the 9.3 but have tried it empty as well gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/ArcPad Tools.tbx") The_full_path_to_the_cab_file = "" TEST_mxd = "C:\\temp\\test.mxd" gp.ProcessArcPadProject_ArcPad(TEST_mxd, "true") This script never works: arcgisscripting.ExecuteError: ERROR 999998: There are no more files. Failed to execute (ProcessArcPadProject). Sometimes the output looks complete but sometimes it does not: missing apm or other files. I can run the model from python with success. The problem seems limited to the arcgisscripting.ProcessArcPadProject_ArcPad method or my python environment. Anyone else experience this?
... View more
09-20-2011
03:35 AM
|
0
|
0
|
1874
|
POST
|
I've tried using gp = arcgisscripting.create(9.3) and i have also tried calling the model tool from python. Calling the model tool from python yields the same Failed to execute error. I'm using the settings stored in the model tool; i'm not passing any parameters from python to the model. Since the model tool creates some output, it's being executed but does not complete. Running the model tool works successfully.
... View more
09-19-2011
06:26 AM
|
0
|
0
|
152
|
POST
|
My python script for processing ArcPad Projects is failing with an error 999998. Is this common? I'm using the script that is exported from the model builder and after the last line it fails: gp.ProcessArcPadProject_ArcPad(THEMAP_mxd, "true") Each time I run the script, it seems to process correctly (output arcpad project looks okay) but the script ends with "Failed to execute (ProcessArcPadProject)" and "arcgisscripting.ExecuteError: ERROR 999998: There are no more files." I have tried several MXD files as the source using shape files for data in the mxd and axf and shapefiles as the output, edit or read only. Some of the test MXDs were very simple just to try to debug this issue. We are currently on ArcMap 9.3.1 w/ SP1 I have tried several MXD files as the source for the processArcPadProject_ArcPad procedure. The manual Get Data for ArcPad tool in ArcMap runs successfully. The model using processArcPadProject_ArcPad seems to work fine with no errors. In some cases the output ArcPad project seems to look complete; other times it looks incomplete (missing apm and other files). I worry with an error message like this I shouldn't use the output. Anyone else have experience with python and the processArcPadProject_ArcPad procedure and that don't get this error?
... View more
09-19-2011
05:12 AM
|
0
|
1
|
1971
|
POST
|
another approach... how to support automated deployment of large reference layer data sets without having them generated and deployed most times?
... View more
08-31-2011
03:18 AM
|
0
|
0
|
175
|
POST
|
Is there a way in ArcPad 10 to perform a partial ArcPad check out where only the editable features in the AXF are refreshed? Our ArcPad projects have significant read only basemap material (routes, street names, etc) which take 3-4 minutes to check out from ArcMap (or otherwise using the ArcPad model tools). I have a "project template" folder with the template project with forms and custom script and a "project out" folder with the current ArcPad project in it. Users copy the project out folder to their mobile device. I would like to refresh this project frequently and automatically so that the users can have access to the newest data. While the server is updating this project, the folder is locked so users don't get a nasty copy. I would like to reduce the amount of lock time. I am using python script and ProcessArcPadProject_ArcPad() when generating a full refresh. If possible, I would like to simply refresh the data tables. I have tried using AxfCopy.exe (from older ArcGIS forums I think). That ran with no errors but the arcpad project would not open completely, reporting "Failed to load 3 layer(s):...". Using studio I was able to confirm that the features are there in the axf and do contain data and no sql errors. 3-4 minutes doesn't seem like much but my goal is to run this as a service which will be checking for checked in data and creating a refreshed check out copy when it finds it. It might check every minute and I would like the field technicians to be able to get a new copy as quickly as possible. I'm open to suggestions on the entire process.
... View more
08-29-2011
05:14 AM
|
0
|
3
|
2897
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|