Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

Is it possible to create TIN layer and add to Data frame?

$
0
0

I have list of TIN. I basically want to add TIN using arcpy.mapping so that when I open .mxd, TIN is added.

tin_list = arcpy.ListDatasets('', 'Tin')
for tin in tin_list:
    arcpy.MakeFeatureLayer_management(tin,"cities_lyr")
    new_layer = arcpy.mapping.Layer("cities_lyr")
    arcpy.mapping.AddLayer(df, new_layer)
    mxd.save()
    print tin

ERROR:ERROR 000732: Input Features: Dataset photosc_tin does not exist or is not supported
Failed to execute (MakeFeatureLayer).


Viewing all articles
Browse latest Browse all 767

Trending Articles