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 have a model that creates a feature class and adds it to the map. The properties of the feature class reference a layer file for the symbology. However, I can't seem to find a good way to pass the labels as well so that the feature class is added with the labels visible.

Is there a way to do this?

share|improve this question
up vote 4 down vote accepted

No, there isn't a way to do this directly by using the ModelBuilder or GP tools in a model. However, you can use the arcpy Layer properties (showlabels) to make this happen after the model has run. Then either export the model to the Python script or rewrite the model by using Python manually. The arcpy showlabels method will be the last step in your model where you set up the labels to show up.

share|improve this answer
For better re-usability (if you need to do this repeatedly or often), you could also create a python script that JUST manages your map display (like turning on/off labels for select layers) and then add that script into your model. Don't forget to end the label script with arcpy.RefreshTOC() and/or arcpy.RefreshActiveView() otherwise you won't see the script changes applied until you manually refresh your session the next time. – RyanDalton Feb 18 '13 at 20:18

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.