Drag and drop from TOC to script tool

961
2
01-24-2019 07:30 AM
PeterVersteeg
Occasional Contributor II

Hallo,

After making a script tool I noticed that the drag and drop from the table of contents (TOC) is not working. It is placing only the name and NOT the path.

Can I do something to fix this?

arcgisPro 2.1.2

Greetings Peter

Tags (2)
2 Replies
DrewFlater
Esri Regular Contributor

I think it is likely you made the script tool parameters as data type Feature Class or Raster Dataset. To support drag and drop of map layers, you need to make the data type Feature Layer or Raster Layer.

PeterVersteeg
Occasional Contributor II

Thank you Drew,

You are correct.

Reading about the did not help me with this but i am happy i know now.

Greetings Peter

Data types: Defining parameter data types in a Python toolbox—Geoprocessing and Python | ArcGIS Desktop 

0 Kudos