Geoprocessing widget ignores the Use selected features checkbox

547
2
06-08-2022 02:23 PM
DougBrowning
MVP Esteemed Contributor

The Geoprocessing widget is completely ignoring the Use selected features checkbox.

If I run the tool like this I get all features sent to my script.

DougBrowning_0-1654723100058.png

I get the whole thing

DougBrowning_1-1654723219017.png

If I use the black box in the widget and select them that way then it does work.

Is this a known bug?  Or do I have to set something differently?  Not seeing any docs or posts on this.

Thanks for any help

 

0 Kudos
2 Replies
DougBrowning
MVP Esteemed Contributor

Update from more testing

I can get draw box next to the layer name to work.

I can get a second field that asks for a Polygon to work

I can get a query result layer to work

But the use selected features does not

DougBrowning_0-1654891825982.jpeg

Seems weird to have the box there if it is not supported. 

I am just using indLayer = arcpy.GetParameterAsText(0) in my code - maybe I need something else?

I cannot seem to find this new checkbox in the help either.  Anyone seen it?

thanks

0 Kudos
Robert_LeClair
Esri Notable Contributor

Doug - I believe you need to follow the workflow seen here in this Tech Support article about using the Select widget as input for a GP widget.

0 Kudos