Hello! the following commands works with shapefiles and rasters, but i cannot manage with a TIN.
Do you know the reason?
tin = C:\PROJECT\mytin
arcpy.CreateTin_3d(tin, CoordSys, Input_Features) # coord sys and input defined above
mylayer = arcpy.mapping.Layer('{0}'.format(tin))
I get an error: invalid data source.
So i tried to save the TIN as a .lyr files first with arcpy.SaveToLayerFile_management(tin), but i get the same error.
With rasters and shapefiles i just give in input the full path of the file, but about the tin?
Thank you!
Seems as though you aren't the only person to come up with this issue.
https://community.esri.com/thread/161557
https://community.esri.com/thread/189604-how-do-i-add-a-tin-to-arcmap-using-python