AnsweredAssumed Answered

arcpy.CreateTin_3d list of input variables

Question asked by BTLeslie on Jun 25, 2015
Latest reply on Jun 25, 2015 by BTLeslie

When using CreateTin in arcpy I can input a list of shapefiles if they have z-values like this:

 

arcpy.CreateTin_3d(outTin, CoordSys, ["feature1.shp", "feature2.shp"])

 

However now one feature has z-values and one has m-values.  I can create TINs from the features individually like this:

 

arcpy.CreateTin_3d(outTin, CoordSys, "feature1.shp Shape.Z Mass_points <None>")

or

arcpy.CreateTin_3d(outTin, CoordSys, "feature2.shp Shape.M Mass_points <None>")

 

However if I try to put them into a list......

arcpy.CreateTin_3d(outTin, CoordSys, ["feature1.shp Shape.Z Mass_points <None>", "feature2.shp Shape.M Mass_points <None>"])

I get the following error:

     File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\ddd.py", line 1735, in CreateTin

          raise e

arcgisscripting.ExecuteError: ERROR 999999............

 

What's going wrong - the features work together if I generate the TIN using the GUI?

Outcomes