arcpy.CreateTin_3d list of input variables

3495
1
Jump to solution
06-25-2015 02:38 AM
BenLeslie1
Occasional Contributor III

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?

Tags (2)
1 Solution

Accepted Solutions
BenLeslie1
Occasional Contributor III

I found the answer - it wont accept lists with this notation - now I have to input my features in a single string separated by semicolons i.e.

"feature1.shp Shape.Z Mass_points <None>;feature2.shp Shape.M Mass_points <None>"

View solution in original post

1 Reply
BenLeslie1
Occasional Contributor III

I found the answer - it wont accept lists with this notation - now I have to input my features in a single string separated by semicolons i.e.

"feature1.shp Shape.Z Mass_points <None>;feature2.shp Shape.M Mass_points <None>"