Hello everybody,
I'm trying to create a tool in ArcGIS, that creates 3D Multipatches from multiple input values.
The tool should extrude between input TIN 1 and input TIN 2, then between input TIN 2 and input 3 and so on...
Somehow my loop is not working. It gives me three 3D Multipatches back, but 3 times the same.
Below I post my code. Maybe someone has an idea or a hint what is wrong with my loop.
# IMPORT MODULES
import arcpy, os, sys, string, traceback
# Input layers
from typing import List, Any
inLayers = arcpy.GetParameterAsText(0)
inLayerslist = inLayers.split(";")
# Output workspace
outFolder = arcpy.GetParameterAsText(1)
# OTHER FRONT STUFF
for lyr in inLayerslist:
n=len(inLayerslist)
arcpy.AddMessage(str(inLayerslist))
arcpy.AddMessage(str(len(inLayerslist)))
for i in range (0,n-1):
arcpy.AddMessage(str(inLayerslist[i]))
arcpy.AddMessage(str(i))
inPoly = arcpy.GetParameterAsText(2)
layerName = lyr + "solid" + str(n)
solid = arcpy.ExtrudeBetween_3d(inLayerslist[i],inLayerslist[i+1],inPoly,layerName)
Do you also need to extrude between the first TIN and the last TIN?
No.... Am I doing this :grinning_face_with_sweat:? I only need to extrude between the consecutive ones.