Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenagzp committed Jul 14, 2020
1 parent d12dfce commit 5d7007d
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 0 deletions.
Binary file modified ArcGIS/Herramientas.tbx
Binary file not shown.
21 changes: 21 additions & 0 deletions ArcGIS/apply_layer_symbology.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Import modules
import arcpy

#Get the current Map Document
mxd = arcpy.mapping.MapDocument("CURRENT")

# Script arguments
Template_Layer = arcpy.GetParameterAsText(0)
Layers_to_Symbolize = arcpy.GetParameterAsText(1)

# Process: Apply Symbology From Layer
for UpdateLayer in Layers_to_Symbolize:
if UpdateLayer.visible == True:
arcpy.AddMessage("Updating: " + UpdateLayer)
arcpy.ApplySymbologyFromLayer_management(UpdateLayer,Template_Layer)

# Refresh the Table of Contents to reflect the change
arcpy.RefreshTOC()

#Delete the MXD from memory
del mxd
Binary file modified ArcGIS/legacy.tbx
Binary file not shown.
Loading

0 comments on commit 5d7007d

Please sign in to comment.