Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm writing Python code for ArcGIS using the arcpy library and now I'm experiencing a little problem with labels. In fact I'm not able to rotate them in layout via arcpy (I should rotate all labels of 90 degrees). I found a way to display correct field, round the number, but not to position the label correctly.

share|improve this question
2  
you can fill a field containing the angle of rotation using arcpy, then make a maplex rule to rotate using that field resources.arcgis.com/en/help/main/10.1/index.html#//… – geogeek Oct 9 '12 at 15:16
Hi @geogeek , thank you for answering. How can I build a maplex rule for my code? I tried to find something about it.. but I couldn't find anything about the syntax to use.. thanks once again! – Annalisa Minelli Oct 9 '12 at 15:36
1  
As a workaround you could try rotating the labels of your layer and save that as a layer file, then when you need rotated labels for that layer use AddLayer to add the layer file. – PolyGeo Oct 10 '12 at 3:01
1  
I just looked at ArcGIS Ideas to see if anyone had already asked for this but no luck. You may want to add a new ArcGIS Idea and post a link here so we can add votes to it. – PolyGeo Oct 10 '12 at 3:15
1  
if you have some experience in arcobjects , you can bring arcobjects functions using Ctypes pierssen.com/arcgis10/upload/python/extend_python.pdf – geogeek Oct 10 '12 at 14:49
show 4 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.