Select to view content in your preferred language

Disable "Use the selected records" toggle from PYT

278
2
03-06-2026 05:18 AM
MobiusSnake
MVP Regular Contributor

Hi all,

Is it possible to disable the "Use the selected records" toggle from a Python toolbox?

I have some tools which should always use all features from the input, I've instructed users to ensure that toggle is turned off but would like to remove the option altogether.

Thanks!

2 Replies
AlfredBaldenweck
MVP Frequent Contributor

Not to my immediate knowledge, but you could modify the code to work on the datasource of the input layer, rather than the layer itself?

BobBooth1
Esri Regular Contributor

Or maybe add the Select Layer By Attribute tool to your script to run on the inputs, with the CLEAR_SELECTION option.