1

I have a custom script tool in my toolbox in ArcGIS Desktop 10.3. I want to add it as a layer in table of contents so when the map is shared people can have access to it easily. for example as shown in figure:

1]

When I drag a tool from catalog to contents, it gives error:

Could not add specified data object to the map

Can anyone help?

  • That's because you can't add script tools to the table of contents. I'd suggest taking a look at Jason's post here, which describes how to use Python Distribution Utilities to get your custom toolbox to show up in the ESRI system toolboxes: gis.stackexchange.com/questions/130772/… – ianbroad Aug 30 '15 at 9:38
1

It is not possible to do that. GP tools can be added to toolbars, menus and sub-menus but not to TOC.

To do so, simply create a python addin, then create a button to open the gp tool.

See here:

python addin module

1

I guess you're talking about this feature: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002v00000006000000.htm

Esri has removed this feature since ArcMap 10.1. I was trying to do that and found out that it's not possible anymore: https://geonet.esri.com/thread/87086

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.