Save all layers in map to layer files

    Table of contents
    to the older version or return to version archive.

    Combined revision comparison

    Comparing version 14:02, 4 Oct 2011 by matt with version 14:03, 4 Oct 2011 by matt.

    ...

    import arcpy
    arcpy.env.workspace = r'r:\Layers'
    layers = ['Index','Toponomy','Places of Interest','Transportation','Energy','Industrial and Commercial','Buildings and Structures','Hydrography','Water Saturated Soils','Relief and Landforms','Vegetation']
    for lyr in layers:
        arcpy.SaveToLayerFile_managementSaveToLayerFile_management(lyr, lyr + '.lyr', "RELATIVE")
    

    ...

    Version from 14:02, 4 Oct 2011

    This revision modified by matt (Ban)

    ...

    import arcpy
    arcpy.env.workspace = r'r:\Layers'
    layers = ['Index','Toponomy','Places of Interest','Transportation','Energy','Industrial and Commercial','Buildings and Structures','Hydrography','Water Saturated Soils','Relief and Landforms','Vegetation']
    for lyr in layers:
        arcpy.SaveToLayerFile_management(lyr, lyr + '.lyr', "RELATIVE")
    

    ...

    Current version

    This revision modified by matt (Ban)

    ...

    import arcpy
    arcpy.env.workspace = r'r:\Layers'
    layers = ['Index','Toponomy','Places of Interest','Transportation','Energy','Industrial and Commercial','Buildings and Structures','Hydrography','Water Saturated Soils','Relief and Landforms','Vegetation']
    for lyr in layers:
        arcpy.SaveToLayerFile_management(lyr, lyr + '.lyr', "RELATIVE")
    

    ...

        Send feedback