laptop and a wrench

漏洞

The ArcPy 'layer.extrusion' method does not successfully extrude data.

ArcGIS Pro
漏洞 ID 编号 BUG-000170010
已提交August 15, 2024
上次修改时间May 26, 2025
适用范围ArcGIS Pro
找到的版本3.3.1
操作系统Windows OS
操作系统版本11.0 64 bit
状态As Designed

附加信息

The issue is that the expression syntax does not match the expression language. For example, at some point the expression was written for VBScript, but the default language is Arcade. Here is a script that will iterate through layers and report the current expression language if an expression is present and a layer supports extrusion expressions.`#Use CIM properties to determine if there is Layer.extrusion expression# and if so, what language is being usedp = arcpy.mp.ArcGISProject('current')m = p.listMaps()[0]for l in m.listLayers(): l_cim = l.getDefinition('V3') if hasattr(l_cim, 'extrusion'): if (hasattr(l_cim.extrusion, 'extrusionExpressionInfo') and hasattr(l_cim.extrusion.extrusionExpressionInfo, 'expression') and len(l_cim.extrusion.extrusionExpressionInfo.expression) > 0): print(f"{l.name}: Language = Arcade") print(f" expression = {l_cim.extrusion.extrusionExpressionInfo.expression}") elif(hasattr(l_cim.extrusion, 'extrusionExpression') and len(l_cim.extrusion.extrusionExpression) > 0): print(f"{l.name}: Language = VBScript") print(f" expression = {l_cim.extrusion.extrusionExpression}") else: print(f"{l.name}: No extrusion expression, therefore no language") else: print(f"{l.name}: Does not support extrusion")'.

重现步骤

漏洞 ID: BUG-000170010

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项