POST
|
Thanks @David_Brooks I attempted this, but it still displayed the first attribute in the table and not the attribute that was being displayed.
... View more
09-13-2021
01:44 PM
|
0
|
0
|
444
|
POST
|
Hello, I have created a set of maps using data driven pages that are driven by a layer named "map_frame". I am trying to add text elements that will automatically update based on the attributes of a layer named "Boundaries" that are present within each data driven page. I understand that I can do dynamic text using data driven page attributes, but I need to pull attribute for the text from layers that are not driving the the data driven pages. I followed the example in this Q/A posted in the community: Extending Dynamic Text I was able to get the code to work, but the text elements did not update when I would navigate to the next data driven page in the series. I think this is due to the code pulling from the first attribute in the layer's table, but I don't know how to change the given code to adjust for my desired outcome. I'm new to Python and the arcpy.mapping module. Does anyone have any guidance? ArcMap 10.8.1 Example Code: import arcpy # get the reference to the map document and the layer named "Boundaries" in the map document mxd = arcpy.mapping.MapDocument("CURRENT") mapLyr = arcpy.mapping.ListLayers(mxd, "Boundaries")[0] # get the reference to the text elements in the map document. I have 2 text elements with the name ID and county idElem = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "ID")[0] countyElem = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "County")[0] # create a cursor and grab the first row in the feature class for the layer specified above rows = arcpy.SearchCursor(mapLyr.dataSource) row = rows.next() # set the text property of the text element equal to the value from the fields named "ID" and "County" idElem.text = row.getValue("ID") countyElem.text = row.getValue("County") # save the map document and delete the reference to the row, cursor and map object mxd.save() del mxd, row, rows, Thank you!
... View more
09-07-2021
08:52 AM
|
0
|
2
|
511
|
POST
|
Hello, I am testing the functionality of the Wayback App and its assorted images for a project that I'm working on and I'm struggling to get the past images to open in ArcMap (using 10.8.1). When I navigate to the item I'm interested in, I am able to open that image using AGOL Map Viewer Classic with no issues. However, when I try to open in ArcGIS Desktop, the item.pitem that is downloaded results in the most recent imagery to load in the TOC. I've tried multiple Wayback Images and get the same results. Please let me know if anyone else has has this error and if there are any suggestions to remedy the issue. Example: World Imagery (Wayback 2020-04-08) Successfully uploads to AGOL Attempt to Open in ArcMap Wrong Image is loaded Thank you!
... View more
08-24-2021
09:44 AM
|
0
|
2
|
635
|
POST
|
I have a feature class with pictures attached to the points that I have successfully viewed from ArcGIS online. When I pulled the geodatabase into ArcGIS Pro, the attachments were no longer showing up. The geodatabse has the feature class, a GBD_ServiceItems table, and ATTACH table and a relationship class. I tried this workaround (How To: Re-establish the relationship class for geodatabase attachments ) but the feature failed to copy and I received this error: Cannot open origin or destination class of this relationship class. [filename__ATTACH] Unexpected operation [filename__ATTACH]. I've re-downloaded the geodatabase twice and have had the same issue. Please let me know how to resolve this issue. Thank you.
... View more
09-09-2019
08:03 AM
|
1
|
0
|
521
|
Title | Kudos | Posted |
---|---|---|
1 | 09-09-2019 08:03 AM |
Online Status |
Offline
|
Date Last Visited |
07-12-2023
10:58 PM
|