When running a script from a toolbox in ArcGIS Pro, arcpy.env.addOutputsToMap is set to False by default.
上次发布: August 4, 2017ArcGIS Pro
漏洞 ID 编号
BUG-000105416
已提交
May 26, 2017
上次修改时间
June 5, 2024
适用范围
ArcGIS Pro
找到的版本
1.4
操作系统
Windows OS
操作系统版本
7
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
Changing of environments and settings within a script tool are sandboxed to that particular tool. They do not update the application-level settings, this is by design, we don't want a setting set in a script tool to have ripples through subsequent tools. The addOutputsToMap setting really only applies after a tool has executed (adding the output of a tool to the map); thus there is really no use case where using this setting in a script tool would apply.