Hi all,
I have a scripting tool that batch processes data by default. Is there a way to turn off the "Right-Click>Batch" option?
Thanks!
Solved! Go to Solution.
In
C:\_Your_Install_folder_\Resources\ArcToolBox\toolboxes\batch_gp.xml
Never tried it...
<!--# Disable the batch command for these tools, one line per tool, format - <tool id="<toolbox alias>.<tool name>" /> -->
<batch>
<tools>
<tool id="analysis.Intersect"/>
..... snip
You can create a batch to run a python script, something like below.
@echo off
"C:\Python27\ArcGIS10.8\python.exe" "C:\pythonscripts\pythonscript.py"
pause
In
C:\_Your_Install_folder_\Resources\ArcToolBox\toolboxes\batch_gp.xml
Never tried it...
<!--# Disable the batch command for these tools, one line per tool, format - <tool id="<toolbox alias>.<tool name>" /> -->
<batch>
<tools>
<tool id="analysis.Intersect"/>
..... snip
Interesting nugget of info this is! Should emphasise this appears to be a solution for ArcPro and there is no equivalence for ArcMap?
Thanks for the response. This looks like it would work on a local computer, but would it work if I sent the script tool to someone else?
No. And there is no way to disable it. You could write your code to only accept the first element in any list passed to the tool, essentially incapacitating any attempt to batch. You would then have to encrypt your toolbox