AnsweredAssumed Answered

CreateTIN with arcpy using more input feautures

Question asked by marty9 on Mar 15, 2017
Latest reply on Mar 15, 2017 by marty9


I am writing a Python code and the function createTIN does not work if i use 2 input features but i need both of them.

This is the code (the workspace is defined before):


area = 'Model_Area.shp'  # a polygon to clip the TIN
data = 'IST_HQ100_Depth.shp'  # the .shp with the height field i need
dField = 'Field4'
TIN = output + "tin"    # the folder is specified above

Input_Features = "{0} {1} Mass_Points <None>".format(data, dField)
inArea = "{0} <None> Soft_Clip <None>".format(area)

arcpy.CreateTin_3d(TIN, CoordSys, [Input_Features, inArea])



The syntax in the DesktopHelp fore more inputs has squared brackets and comma like i did.

If i give only one input (which is the example in the DesktopHelp) it works, but the output is wrong.

With both inputs in the ArcMap GUI it works with no problem (picture) and result is correct.

I really need to code it because I will put data and dField in a for loop for many data.


Does anybody know what the mistake could be? Pleeease help me if you can

I am using Python 2.7 and ArcMap 10.3, which should be compatible