POST
|
I think I have solved this problem in another way with the function you provided under my other question! Although the interface didn't update with the data, the exported Pictures has already been updated with mp.defaultView.exportToPNG. Thank you! You saved my ass.
... View more
10-03-2020
08:29 AM
|
0
|
1
|
1168
|
POST
|
Thank you for your reply! I have known how to delete the table and substitute it with a new .dbf file. Now the problem is that I tried to use a for loop to keep updating the map displayed in the interface based on the newest updated data in each loop. But it seems that the map will update only once after the whole for loop is finished. I don't know why. Because in the arcgis Map, I can use refresh function to refresh it.
... View more
10-03-2020
07:19 AM
|
0
|
3
|
1168
|
POST
|
But I don't want to export my layouts. I just want to export my map Object into a PNG file which comes from a .shp file. In the interface, I only need to click on the map icon and click on sharing, then I can export your map into a PNG file, which means map file can be directly exported into a png. But I couldn't find that function in Map class in the documentation.
... View more
10-03-2020
06:51 AM
|
0
|
0
|
6339
|
POST
|
I try to draw a real-time map based on one field. And I will update this field with another kept-on-generating dataframe. I forgo to finish it with updateCursor because it is so slow. Instead, I try to convert dbf into a csv file and merge it with that dataframe then convert it back to the dbf file. It works well in 1st time. But since I have used the function TableToTable_conversion to generate a dbf file, it will add a table under that map in arcgis pro. Therefore I have to delete that table first before I run ableToTable_conversion to generate a generated dbf file. So what is the corresponding code in arcpy to delete that table? BTW: I can visit these tables using this code: tbs = mp.listTables() for tb in tb: print(tb.name)
... View more
10-03-2020
03:18 AM
|
0
|
5
|
1242
|
POST
|
Thank you for your reply! The documentation says that: the method of ListElements on Layout Objects can get access to MapFrame But when the scirpt below return a null list, do you know the reason? pro = arcpy.mp.ArcGISProject("CURRENT") mp = pro.listLayouts()
... View more
09-29-2020
08:30 PM
|
0
|
2
|
6339
|
POST
|
The counterpart of that in ArcMap is arcpy.mapping.exportToPNG(), but i could not find the substitute in Arcpy.mp in arcgis pro
... View more
09-29-2020
07:10 PM
|
0
|
7
|
6470
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|