-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
426 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Oops, something went wrong.