漏洞
| 漏洞 ID 编号 | BUG-000125587 |
|---|---|
| 已提交 | September 26, 2019 |
| 上次修改时间 | February 18, 2025 |
| 适用范围 | ArcGIS Pro |
| 找到的版本 | 2.4.1 |
| 操作系统 | Windows OS |
| 操作系统版本 | 10.0 |
| 状态 | As Designed |
The object at index 0 in the result object is the layer to add Use the following code:
temp = arcpy.MakeFeatureLayer_management(r"C:\Temp\GreatLakes\GreatLakes.gdb\GreatLakes", "TestOutput")[0]
p = arcpy.mp.ArcGISProject('current')
m = p.listMaps('Map')[0]
m.addLayer(temp)
漏洞 ID: BUG-000125587
软件:
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序