For a comparison analysis of intersected polygon feature classes I am trying to export 253 layer files to a PNG image using the Model Builder.
Unfortunately the 'Iterate Files' tool in the Model Builder won't let me iterate through the the .lyr-files in the workspace.
I am trying to use the following arcpy tool in a script linked to the iterator:
<SPAN class="pln" style="color: #303336;">arcpy</SPAN><SPAN class="pun" style="color: #303336;">.</SPAN><SPAN class="pln" style="color: #303336;">mapping</SPAN><SPAN class="pun" style="color: #303336;">.</SPAN><SPAN class="typ" style="color: #2b91af;">ExportToPNG</SPAN>
It gives me the following error, as a .lyr file is nothing more than a reference to symbology and a feature class.
Failed to execute. Parameters are not valid.
ERROR 000840: The value is not a File.
Failed to execute (LayertoPNG).
Hopefully someone could help me out, as I couldn't make this script work either:
arcgis 10.0 - Export each layer in map to a separate image - Geographic Information Systems Stack Exchange
or:
python - Arcmap: save all layers in Table of Contents to layer files - Geographic Information Systems Stack Exchange