Select to view content in your preferred language

Create Tin with multiple input features

952
2
04-04-2013 09:11 AM
RileyCotter
New Contributor II
This piece of code works just fine in my script and the TIN is output with no problems
arcpy.CreateTin_3d(TIN_name, coordsys, outputFC + " Shape.Z masspoints", Delaunay)


However, when I try to add my second input feature my code will not run
arcpy.CreateTin_3d(TIN_name, coordsys, outputFC + " Shape.Z masspoints" ; waterPoly + " Shape.Z softerase", Delaunay)


This is the code that I get when I export a script from ModelBuilder. However, these are hard coded shapefiles that
arcpy.CreateTin_3d(Output_TIN, "", "test Shape.Z masspoints <None>;test_3d_polys Shape.Z softerase <None>", "DELAUNAY")


This doesn't work either
arcpy.CreateTin_3d(TIN_name, coordsys, [outputFC + " Shape.Z masspoints"; waterPoly + " Shape.Z softerase"], Delaunay)
Tags (2)
0 Kudos
2 Replies
RileyCotter
New Contributor II
I was finally able to get this running.  My work around.....Create an empty TIN, then used "Edit TIN" which allows multiple input features.  This seems really silly since you can have multiple input features when using the create TIN tool in ArcToolbox. Maybe I was just doing something wrong with "Create TIN", so if you have a different solution I would love to know.
0 Kudos
KlausOsadnik1
New Contributor
Hi Cotterrj,
try this.

spatial_reference = arcpy.SpatialReference(31466) # Zone 2

arcpy.CheckOutExtension("3D")
# input verzeichnis
env.workspace = r"C:\Temp"
# tin name
tin_name=r"test5"

fc1="abgrabungen01"
fc1_type = "Shape.Z"
fc1_sftype="masspoints"

arcpy.ddd.CreateTin(tin_name, spatial_reference,\
                        "{0} {1} {2};{3} {4} {5}"\
                       .format(fc1,fc1_type,fc1_sftype,"abgrabungen","Shape.Z","hardline"), "CONSTRAINED_DELAUNAY")


Best regards
Klaus
0 Kudos