Select to view content in your preferred language

How can I extrude a shapefile by a specific attribute in arcpy?

1006
2
10-09-2019 07:48 AM
PaulGrenning
Emerging Contributor

I can extrude the shapefile in arcgis pro using the appearance tab.

I want to do the same thing in arcpy but I cannot seem to figure it out. I have tried FeatureTo3DByAttribute_3d but that just moves the 2d polygon to the height of the attribute. 

Is there a way to connect to surfaces? I also took a look at ExtrudeBetween_3d but that requires a TIN for the top and bottom. All I have is my shapefile with columns of base elevation and height.

Thanks for the help.

2 Replies
DuncanHornby
MVP Notable Contributor

The layer object has an extrusion method, this should allow you to extrude the features in your layer as if you are using that button in the Appearance tab. Extrusion is an effect you apply to your layer, you are not actually convert the data into 3D.

0 Kudos
NeilAyres
MVP Alum

Then you can use this tool to export the layer to a multipatch