Hello! the following commands works with shapefiles and rasters, but i cannot manage with a TIN.
Do you know the reason?
tin <SPAN class="operator token">=</SPAN> C<SPAN class="punctuation token">:</SPAN>\PROJECT\mytin
arcpy<SPAN class="punctuation token">.</SPAN>CreateTin_3d<SPAN class="punctuation token">(</SPAN>tin<SPAN class="punctuation token">,</SPAN> CoordSys<SPAN class="punctuation token">,</SPAN> Input_Features<SPAN class="punctuation token">)</SPAN> <SPAN class="comment token"># coord sys and input defined above</SPAN>
mylayer <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>mapping<SPAN class="punctuation token">.</SPAN>Layer<SPAN class="punctuation token">(</SPAN><SPAN class="string token">'{0}'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>tin<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>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!