Tag Info

Hot answers tagged

5

My understanding is that Background Geoprocessing runs as a separate process and, unlike Foreground Geoprocessing, is unaware of your current ArcMap environment. Consequently, I don't think you'll have success with your current approach. AutoSaving maps is not the same as AutoSaving edits but you could look at Incremental "auto save" in ArcMap ...


4

This can be accomplished by adding a value list filter to the tool parameter. Right click the tool in the catalog window and select properties, then navigate to the 'Parameters' tab. Highlight the parameter you would like to add the value list to, navigate to the 'Parameter Properties' box and select 'Value List' from the drop-down menu in the 'filter' ...


2

When you are running a script in the background, a python process is spawned that is separate from ArcMap. So essentially, arcpy.mapping.MapDocument("CURRENT") is attempting to open a map document that it cannot see. This makes sense as imagine the issues if you had multiple .mxd open: Python would not know which one you mean by "CURRENT". You can see this ...


1

My solution is to set up a startup script that sets of the path based on the python environment you are using. This method has the (huge) advantage that you don't need admin access to write .pth files in python installations. This script is setup to use both 32 bit and 64 bit Anaconda and ArcGIS/arcpy. # Startup script to link Anaconda python ...


1

There are three sets of properties to be aware of here: The envelope of horizon of the coordinate system, The extent of the coordinate reference, and The envelope of the feature class. The coordinate system horizon is mathematical space accessible by the coordinate system (e.g., infinite X, -90...+90 Y for GCS_WGS_1984). Esri uses these horizons to ...


1

It looks like you are configuring a Python script tool in a standard toolbox so I replaced your python-toolbox tag (which is for Python toolboxes) with one for python-script-tool. To set irrdist you are reading the 4th parameter (indexed as 3) but you have not shown us how that parameter has been configured on the tool dialog. I suspect that you are not ...



Only top voted, non community-wiki answers of a minimum length are eligible