|
POST
|
Mark, You cant access "CURRENT" within a GP Service. You're correct, its the same idea as background processing. You'd have to set explicit paths to the map document you want to build your GP Service for arcpy.Mapping around. From your post the other day - what is your end goal? --To use layers inside tools within your service (the use of layers to save the re-open cost on execution) or --To interact with layers, and map documents with the end goal of creating a jpeg or pdf which could be printed While these ideas both use "layers", technically they go about it differently. Yes, all things equal they're all layers, but when it comes down to it: arcpy.Mapping.Layer (http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Layer/00s300000008000000/) does not equal "layers" you use in a tool (http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000073000000) If you goal is to use layers in a service for tool execution, your workflow is basically: -Add the layers you want to use into your map document -Create your script. Where your tool executes against a "layer", simple use a string inside the tool parameter with the layers name. --Its this 1:1 match up of the layers name in the ToC and the string inside your script which makes this work -Create a tool layer. (drag the tool into the ToC). -Publish using "Add New Service" - look for the topic title "Geoprocessing service with a source map document" located at: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Publishing_geoprocessing_services/002v00000009000000/
... View more
02-07-2012
02:20 PM
|
0
|
0
|
2789
|
|
POST
|
This workflow is supported and should work as you've outlined. For example, you have a simple model, with only buffer in it. The output path of your buffer tool can point at: %scratchworkspace%\%MyName%.shp You can have an input variable as a string, in the model called MyName, and as you'd expect, the input value of this string gets used in the 2nd output inline variable. When you say Modelbuilder is ignoring the first inline variable (scratchworkspace) - how so? I assume you're trying to run the model you created? Whats the output path look like from execution? Remember when running in ArcMap, the scratchworkspace inline variable is based off the Scratch Workspace environment setting. Where ever this environment setting points at, the inline variable will evaluate to that at run time and in the above example, write output there.
... View more
01-11-2012
08:47 AM
|
0
|
0
|
625
|
|
POST
|
I assume you mean you cant put multiple tasks into a single service? With the change to publishing GP Services you need to have the multiple results setup and ready in your ArcMap session. Once you get into the Service Editor you use the Add Result button to add multiple tasks into the service you are creating.
... View more
01-06-2012
06:49 AM
|
0
|
0
|
679
|
|
POST
|
ArcMap Service pack. You can find the link to download it here: http://resources.arcgis.com/content/patches-and-service-packs?fa=viewPatch&PID=160&MetaID=1807 ArcGIS Desktop (ArcInfo, ArcEditor, ArcView, ArcGIS Eval Edition) ArcGISDesktop10sp3.msp 401 MB
... View more
12-21-2011
07:58 AM
|
0
|
0
|
302
|
|
POST
|
Ok - I cant think of a particular fix we did between 10 final and SP3 that would address this. However I know we did do a number of little fixes with the tool and I can only guess one of those is fixing the issue you're running into. My apologies, I hope you're able to upgrade to service pack 3.
... View more
12-21-2011
07:51 AM
|
0
|
0
|
2215
|
|
POST
|
Stephen, thanks, layer package works great. What version of ArcGIS are you using? I converted with 10.0 sp3 and 10.1 beta and they both translated the same way and I believe the translation is correct. I'm able to click the URL field while inside GE. Attached inside the zip are the 2 versions of the KML I created. Can you have a look and verify this is the result you want?
... View more
12-21-2011
07:38 AM
|
0
|
0
|
2215
|
|
POST
|
I'm having problems trying to replicate your data with the URL you mentioned in your first post. (I want to see if I can reproduce the issue you're reporting) Could you create a layer package of the data and share it with me? You can post here or email me directly, khibma[AT]esri.com thanks
... View more
12-21-2011
06:52 AM
|
0
|
0
|
2215
|
|
POST
|
Thanks for pointing out the page with the python sample. I see what you're referring to. In the sample, a 'workspace' is set. Because of this, you can make everything within the script relative (what you're seeing inside the tool syntax). So when the tool is run, it puts the two pieces together.
env.workspace = "C:/ResultFiles"
arcpy.PackageResult_management(rlts, 'all_layers.gpk', "PRESERVE", "CONVERT_ARCSDE", "#", "ALL", "ALL", "DESKTOP", r"C:\docs\readme.txt", "Summary text", "Tag1; tag2; tag3" I understand your concerns about the option to enable Runtime. This decision was made as the great majority of people *would not* be creating geoprocessing packages for the Runtime. The Runtime supports a subset of the core tools in ArcGIS. I'm sure you can imagine the confusion for someone who doesn't know the Runtime wanting to "support more" with their package, only to be told the tools they're using wont work. Thats why we "hide" it, unless you understand what it does and why you'd want to use it. I'll try to get a couple lines into the geoprocessing package help which explain how to get the checkbox enabled in the package creator. The cut/paste you have below. I've since updated the text and will be available in the release after Beta2 (I missed the boat for beta2).
... View more
11-17-2011
11:36 AM
|
0
|
0
|
1630
|
|
POST
|
Thanks for the feedback. We should actually update the Ideas site to reflect the work we're doing on it. Internally we've made some improvements to the message bar, but we haven't finalized anything. Right now these changes will be in 10.1 (if you subscribe to the 10.1 beta, the release after beta 2 will have some of these changes). For 10.1 final we should have the background progress indicator in a state we're happy with based on current feedback.
... View more
11-15-2011
01:33 PM
|
0
|
0
|
1524
|
|
POST
|
Hi Melissa, I think I understand what you're doing. Could I suggest another solution? Server handles the problem of files colliding when many people are running the service. Each execution server handles is done in a unique directory, because of this the files you output from the GP processes will never be in conflict with each other. You handle writing output to the scratchworkspace. In the end output of your model, if you were to change the output to: %scratchworkspace%\myShapefile.shp .... everything should be good. The topic here explains: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_models_for_geoprocessing_services/002v00000005000000/ Give a read, by using this method you wouldn't have to use the Calc -> date method. Hope this helps.
... View more
11-07-2011
09:58 AM
|
0
|
0
|
784
|
|
POST
|
Within ArcCatalog there is no Item Description on the right click menu. The "Description" is a tab, part of the main window. If you just click on the model, you should have 3 tabs - description being one of them. Within ArcMap's Catalog Window, you get a Item Description off the right click context menu and from there it opens a new Item Description window. Hope this helps I'm afraid I dont see the "Item Description" option at all. I am using ArcGIS 10, full version. (Build 2800) When I right click on my model, I get: Open... Batch... Edit... Debug... Copy Delete Rename Set Password... Export Script (grayed) Import Script (grayed) Help Properties I don't see any Item Description.
... View more
10-24-2011
01:00 PM
|
0
|
0
|
2863
|
|
POST
|
It works because tools need parameters (so your suggestion is correct). The output parameters get added to your display or are available in the Results window. Give a read here: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_creating_tools_with_ModelBuilder/002w0000007m000000/ If you checked "add to display" - this is a setting only used when running the model within the ModelBuilder window itself. Further explained here: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Displaying_model_data/002w0000003q000000/
... View more
10-24-2011
12:55 PM
|
0
|
0
|
637
|
|
POST
|
Jon, For sure. You want to add the following type "Personal Geodatabase - MDB - .mdb". The last part of the help topic here gives some context. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/GP_Service_example_Clip_and_ship/002v00000019000000/ Basically copy the task into a model of your own. From Model > properties of your model, make sure the feature format is a value list, and add the entry "Personal Geodatabase - MDB - .mdb". Hope this helps.
... View more
10-07-2011
01:57 PM
|
0
|
0
|
766
|
|
POST
|
Which operating system are you using? I remember a co-worker (internally) having a problem like that which we put a fix in for. If you can consistently reproduce it, we'd need to know your system settings. The case I remember was extremely specific, making it kind of tricky to figure out what was happening.
... View more
10-03-2011
07:34 AM
|
0
|
0
|
2346
|
|
POST
|
Curtis is correct with his ideas. If you need upload, you could use Python and built in modules. Another approach (depending on your requirements) - you could build a web application to handle file upload. The third example in this presentation demonstrates that: http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=D9FF1406-1422-2418-34C7-DFD120346706
... View more
09-28-2011
07:25 AM
|
0
|
0
|
718
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-25-2026 08:25 AM | |
| 1 | 09-29-2025 05:19 AM | |
| 1 | 09-20-2023 06:37 AM | |
| 1 | 09-18-2025 07:07 AM | |
| 3 | 09-18-2025 06:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-25-2026
08:04 AM
|