2

Because in ArcGIS 10.0 there is still no simple toolbox function to convert labels to Annotation, I try to go a substitude way with the callable Toolbox function [TiledLabelsToAnnotation][1] on a polygon shape, which covers all of my data area (= 1 polygon).


The script is now running, because of the simplifications for the posting!

import arcpy

# Settings
scale = "30000"  
folder = "D:\Temp\LBL.gdb"  
arcpy.env.workspace = folder  

# Mapdocument
map = r"D:\Temp\MAP-LBL.mxd"  

# Local variables:
dataFrame = "Layer"  
grid = "Grid"  
group = "Group"  
suffix = "Anno"  
fid = "tile"  
link = "STANDARD"  # not linked = "STANDARD" / linked = "FEATURE_LINKED"   
unplace = "GENERATE_UNPLACED_ANNOTATION"  

# Process: Tiled Labels To Annotation
arcpy.TiledLabelsToAnnotation_cartography(map, dataFrame, grid, folder, group, suffix, scale, "", fid, "", "", link, unplace)

closed as off-topic by PolyGeo Mar 23 '17 at 10:18

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    Please post your script. It is impossible for us to figure out what is causing the error if we cannot see what you have. It sounds like a syntax problem if you can run it manually and in Model Builder. – Get Spatial Apr 25 '13 at 7:04