CreateTIN script executes but no output

161
0
04-25-2022 08:28 AM
LClark1102
New Contributor

The code executes properly. I don't get any errors. But when I go to the workspace that I set, there is nothing there when there should be a TIN. Any idea what's wrong?

# Import system modules
import arcpy

# Set the parameters
InputFeatureClass = arcpy.GetParameterAsText(0)
field_1pct = arcpy.GetParameterAsText(1)
field_0_2pct = arcpy.GetParameterAsText(2)
spatial_ref = arcpy.GetParameterAsText(3)
arg_1pct = InputFeatureClass + " " + field_1pct + " " + "softline"

try:
    arcpy.env.workspace = arcpy.GetParameterAsText(4)
    arcpy.ddd.CreateTin("tin_1pct", spatial_ref, arg_1pct)
    
except arcpy.ExecuteError:
    print(arcpy.GetMessages())
except Exception as err:
    print(err)

 

Thanks.

0 Kudos
0 Replies