POST
|
Hi, Yes, the code is same as is given in the Arcgis 10.1 Help as a sample code and i tired running this after creating a same folder ,Layer and mxd.But After i ran this code it gave me the following error: Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'list' object has no attribute 'updateItem' Can;t figure out what I am doing wrong. However, my aim is to add legend to the map (around 50 maps) and the legend is different for each of the map.Kindly tell me what should i do to automate this. Is there a way to save a legend file , so that we can add it using arcpy..??? Thanks, Swati
... View more
01-15-2014
01:01 AM
|
0
|
0
|
977
|
POST
|
Hi Everyone, I am facing a problem with map automation.I am interested to add a legend to my map( in map layout) and using legend.updateItem to do so but it gives me an error : Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'list' object has no attribute 'updateItem' Kindly suggest for this! Thanks , Swati
... View more
01-11-2014
10:48 PM
|
0
|
0
|
646
|
POST
|
Hi, I am trying to add a legend to a map layout using arcpy. after going through the tutorials I have used the following code : import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd") df = arcpy.mapping.ListDataFrames(mxd)[0] lyrFile = arcpy.mapping.Layer(r"C:\Project\Data\Rivers.lyr") arcpy.mapping.AddLayer(df, lyrFile, "TOP") styleItem = arcpy.mapping.ListStyleItems("USER_STYLE", "Legend Items", "NewDefaultLegendStyle")[0] legend = arcpy.mapping.ListLayoutElements(mxd, "LEGEND_ELEMENT")[0] legend.updateItem(lyrFile, styleItem) del mxd but everytime I run this code I found an error : Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'list' object has no attribute 'updateItem' Kindly help to resolve this. I am new to map automation and using Python. Thanks Swati
... View more
01-11-2014
10:45 PM
|
0
|
4
|
5643
|
POST
|
I am looking for a tool or a methodology to identify or map a Cliff using a DEM in ARCGIS. thanks Swati Saini
... View more
12-02-2010
08:34 PM
|
0
|
1
|
2027
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|