Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm applying layer files in ARCGIS 10 using the ApplySymbologyFromLayer_management command via a python script tool. The symbology part works fine but the lables are not formatting.

It is my understanding that applying a layer file should also format the lables as well. Has anyone else had this issue? Any ideas would be appreciated.

Here is the code I am using.

import arcpy, os
from arcpy import env

## Create parameters for modelbuilder user specified fields.
symbolize_layer = arcpy.GetParameterAsText (0)
symbol_lyrFile = arcpy.GetParameterAsText (1)

arcpy.AddMessage("**** Step 1 ****")
#  apply symbology
arcpy.ApplySymbologyFromLayer_management (symbolize_layer, symbol_lyrFile)

arcpy.AddMessage("**** Step 2 ****")
# refresh the view

arcpy.AddMessage("**** OK now were Done ****")
share|improve this question
up vote 2 down vote accepted

Unless this is a new feature in version 10.1, to my knowledge, until version 10, labels are not imported with layer symblology. There is even an idea on ArcGIS ideas with over 600 votes requesting this feature.

All is not lost as this can be easily done programatically with ArcObject. (not sure about python but I doubt it since python is more focused on geoprocessing) I posted the code on ArcGIS forums a while back.

I have since made it to an ArcGIS add-in and if there is enough interest i will add it to the resource center for public download.

share|improve this answer
Thanks @Jakib further reading has indicated that labels are not imported with layer symbology. It would be great to have your add-in available, I'm sure many people would use it. – user6784 Jul 10 '12 at 17:53
@user6784 - you can now download the tool HERE – Jakub Jul 10 '12 at 20:55
Hi @Jakib - I tried to access the tool but it's unfortunately not accessible to me. ESRI has indicated its most likely because: 1) its not shared with me or 2) It's only accessible to the owner of the item or members of a particular group. Im not sure how to resolve sharing issues on the site. – user6784 Jul 11 '12 at 16:54
@user6784 - oops, sorry. Try now. Forgot to share it. – Jakub Jul 11 '12 at 16:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.