14 votes

Windows security warning (ActiveX) when clicking into fields in ArcToolbox tool?

I found a solution that worked for me. I change setting in the register. Search for 1201 and value 0 (DWORD) at: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0 ...
Johan Hallgren's user avatar
14 votes
Accepted

Windows security warning (ActiveX) when clicking into fields in ArcToolbox tool?

Quick and short solution: Please follow this post: REDIRECT: axtiveX error warning Original Posting I found a fix for this on ESRI's web site - axtiveX error warning. A staff member came into the ...
Mgamerz's user avatar
  • 256
13 votes

Windows security warning (ActiveX) when clicking into fields in ArcToolbox tool?

The one important difference that most suggestions omit, and very possibly this is all that's needed to fix this, is that in Zone 0 a new DWORD 1201 MUST be created if it doesn't already exist. In ...
Jakub Sisak GeoGraphics's user avatar
6 votes
Accepted

In ArcGIS 10.1, for what tools does Environments actually work?

At the bottom of the help page for each tool, ESRI provides a list of the environments that can impact the tool's processing. For example, the Resample help page does not include Mask in its list. It ...
Tom's user avatar
  • 4,128
6 votes

Reference a script/model from within the same Toolbox

ArcGIS has to be able to find the Toolbox, but that doesn't mean you have to specify the path each time. The easiest way may be to just ensure that the toolboxes are in the same folder, and then ...
Evil Genius's user avatar
  • 6,279
5 votes
Accepted

Snap Point to Specific Edge of Polygon

The would be a four step process, involving determining which polygons don't have overlapping sides. Given: Initiate a feature to line on your parcel feature class. Perform a spatial join on the ...
Emil Brundage's user avatar
5 votes
Accepted

Create default ArcToolbox parameter with current folder location of ArcToolbox .tbx

What you're looking for is the __file__ variable, which in this case will contain a path such as: C:\Users\users\Documents\ArcGIS\Toolbox.tbx#Script.InitializeParameters.py So just do a pathname = ...
mikewatt's user avatar
  • 5,063
4 votes
Accepted

Can the field mapping be shortened in ArcToolbox tools?

Using http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/fieldmappings.htm as a guide, the following python works and makes adding/removing/modifying fields a lot easier than within ...
Midavalo's user avatar
  • 29.7k
4 votes

Applying four colors theorem in polygon map using ArcMap

This is an adaptation of @radouxju's answer into a function. It will add a color field to the input feature layer and calculate. It should work regardless of the field name endings of PolygonNeighbors ...
BERA's user avatar
  • 71.2k
4 votes

Run a model in arcpy

You've only referenced the model, not called it. In short, add () to the end of the call. So in your case: arcpy.Workshopmodel_TestAlias(). At a simple level, your model is a method, not a ...
Evil Genius's user avatar
  • 6,279
4 votes
Accepted

Removing functions from Python Toolbox Template?

My understanding is that ArcToolbox is a window within ArcMap, ArcCatalog and the 3D applications, after earlier being a separate application. As such I think that it is quite independent of any ...
PolyGeo's user avatar
  • 65.1k
4 votes
Accepted

Reference a script/model from within the same Toolbox

This is how I currently do it: import arcpy tbx_path = r'C:\ArcGIS\Toolbox.tbx' tbx_alias = 'MyCustomToolbox' tbx = arcpy.ImportToolbox(tbx_path,tbx_alias) tbx >>> <module '...
Alex Tereshenkov's user avatar
4 votes
Accepted

ArcGIS tool when opened is not appearing

I've tried the suggestions from the comments as well as read through the threads referred too, however they didn't lead to a solution. I was able to figure out the solution after some tinkering. It ...
whyzar's user avatar
  • 12k
3 votes

Pass sql expression with GetParameterAsText to SelectLayerbyAttribute in .py script

A few things... filter is a reserved name in Python (it's a builtin function) so you shouldn't use that as a variable name. your where clause is already a string as you are using GetParameterAsText() ...
crmackey's user avatar
  • 8,484
3 votes
Accepted

Difference between tools with same name in ArcGIS 3D Analyst and Spatial Analyst toolboxes

The raster interpolation, reclassification, math, and surface analysis tools in 3D Analyst that have the same name as their Spatial Analyst counterparts are using the same underyling functions.
zewari's user avatar
  • 126
3 votes

Support for Foreground and Background geoprocessing in ArcMap tools?

The tools that do not run in the background are listed on the help page entitled Background Geoprocessing (64-bit): Tools that do not run in the background include the following: Tools ...
PolyGeo's user avatar
  • 65.1k
3 votes
Accepted

Using tool from ArcToolbox gives error?

Option 1: Remove IE enhanced security configuration https://4sysops.com/archives/how-to-disable-internet-explorer-enhanced-security-configuration-ie-esc-in-windows-server-2012/ Option 2: Adjust ...
jbalk's user avatar
  • 7,485
3 votes

Keeping unmatched records using Join Field in ArcMap

Using python, you could setup your code to specify the input tables and fields, in addition you could specify keep all fields. Here is the syntax table to refer to that uses the join field tool, that ...
whyzar's user avatar
  • 12k
3 votes

Deleting specific vertex in polygon in ArcGIS Desktop?

You can Delete Vertex manually, if you want, from the editor tools. Deleting vertex tool can delete a vertex or multiple vertices at a time to reshape the feature. To do that: Click the Edit tool on ...
ahmadhanb's user avatar
  • 40.7k
3 votes
Accepted

Run script tool in python script

Take a look at Adding toolboxes in Python and ImportToolbox Import the toolbox, giving it an alias (myToolbox), then run your tool, referencing the tool name NameOfTool and the alias myToolBox ...
Midavalo's user avatar
  • 29.7k
3 votes
Accepted

Data driven pages - toolbox

You need to still make the map document object from its parameter path, and make sure the data driven page is enabled and saved within the map doc, try: mxdPath = arcpy.GetParameterAsText(1) mxd = ...
artwork21's user avatar
  • 35.1k
3 votes

Need tool for ArcMap to draw circle touching three points

The script below works on selected points. It is best to attach it to menu item, it will start without prompt dialog. Can be easily modified to do all points in once if they have "triangle" attribute ...
FelixIP's user avatar
  • 22.8k
3 votes

Using custom Python tool to change closed mxd?

You can just add the script as a script tool to any toolbox, or integrate it into a Python Toolbox. How to add a script tool to a toolbox: ESRI Help Python Toolbox Intro: ESRI Help You'll just need ...
PhilippNagel's user avatar
  • 1,702
2 votes

Tool (Simplify Polygon) parameter is not visible anymore

Even I faced same problem. Searched for help. Found this solution. Go to Search/ Simplify line/ Right click/Batch. There you will find option for "Simplification Tolerance"
Anu's user avatar
  • 57
2 votes
Accepted

How to make ArcToolbox as its default?

You can add the Data management toolbox back into the ArcToolbox panel. Simply right click on the the top node (ArcToolbox) and choose Add Toolbox. Now I stopped using 9.3 years ago so I can't tell ...
Hornbydd's user avatar
  • 43.2k
2 votes
Accepted

Python scripting in arcmap - is there an easy way to re-compile py-file

Yes, there are several ways you can do this...If you are importing your module, you can do this: import your_module reload(your_module) # will recompile .pyc You can also use the built in ...
crmackey's user avatar
  • 8,484
2 votes
Accepted

How do you start a Toolbox tool from ArcObjects?

I ended up doing it a different way, but stumbled on the subtype in <Item> declaration in toolbar tag--and it exposes the subtype. <Toolbars> <Toolbar id="gse_id" ...
Jay Cummins's user avatar
  • 14.6k
2 votes

What data type is excel in Arcgis Add Script wizard?

The excel parameter's datatype would be 'File', with a filter of "xls;xlsx" as per @crmackey comment. The sheet parameter's datatype would be 'String'. There is no automatic behavior for populating ...
gotchula's user avatar
  • 3,203
2 votes

How to make a single raster which shows the year since the last fire

There is a tool called "highest position" that can do the job. Just place your layers in the good order (most recent first) because : If two or more input rasters contain the maximum value for a ...
radouxju's user avatar
  • 49.6k
2 votes

ArcToolbox does not open from ArcCatalog?

I no longer have access to ArcGIS 10.3.1 for Desktop, but I just tested your procedure using ArcGIS 10.4 Prerelease for Desktop on Windows 7 SP1 and it worked fine. You could try locating, and ...
PolyGeo's user avatar
  • 65.1k

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