|
IDEA
|
Thank you for your feedback! This is a very difficult equivalency feature. We do not have a solution for this yet but would really like to understand your requirements better so that we might be able to provide some level of support. Views in Pro are much different than data frames in ArcMap. In ArcMap you always had at least a single data frame (and always 1 layout). In Pro, you can have 0-many layouts and they may or may not have map frames. Also with Pro, you can create multiple views of the same project item (e.g., 3 views of the same map or layout and potentially the same camera info, or not). There is not a way to distinguish one view from another - i.e., no unique naming. So with arcpy.mp you can easily reference a map or layout and manipulate them but here is no way to isolate a specific view of a map (or layout). We did recently add Project.ActiveMap so that if you have a script tool you can reference the active map but you can't set it for reasons stated above. Again, please provide some scenarios so we can better understand what you are trying to do. Thanks, Jeff
... View more
04-06-2018
08:29 AM
|
2
|
2
|
5180
|
|
POST
|
This propery has not yet been exposed but thank you for bringing this to our attention - we will expose it in an upcoming release.
... View more
04-05-2018
06:40 AM
|
2
|
1
|
1848
|
|
POST
|
We currently only support exporting to file (PDF, JPG, etc), nothing directly to the printers. We do have future projects in place to extend printing capabilities but nothing planned for 2018. Jeff
... View more
03-14-2018
01:23 PM
|
0
|
1
|
1241
|
|
POST
|
We had various issues with implementing pageRow in time for the 2.1 release and unfortunately didn't think of this very basic request. For 2.2 we will revisit implementing pageRow but should at least have an alternative solution like "CurrentPageName". The only way I can think of solving this now is if you actually had a PageNumber field that map series worked from. Then you could use cursors to return the row based on page number and then you could return the page name from the index layer. Thank you for reporting this! Jeff
... View more
02-21-2018
09:37 AM
|
0
|
1
|
6539
|
|
POST
|
This option has not been added yet into ArcGIS Pro. It is in our backlog of features to add.
... View more
02-13-2018
09:27 AM
|
1
|
0
|
6053
|
|
POST
|
Hello Brian, I'm with the arcpy.mapping team. I was not able to reproduce your scenario. What version of ArcMap are you using? It would be best to open an incident with support services for tracking purposes but you are also welcome to send me data / exact steps to [email protected]. Thanks, Jeff
... View more
01-26-2018
08:40 AM
|
1
|
0
|
2584
|
|
POST
|
Hello Raphael, I apologize for the accidental (colon) typo. I should have tested the code first. I believe the issues you are running into has to do with your pdf output file. Because you are iterating through multiple features, you need to build the PDF to uniquely name each file. In the example below, I'm using the features "NAME" property and building the outputpath/filename. mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] lyr = arcpy.mapping.ListLayers(mxd)[0] rows = arcpy.SearchCursor(lyr.dataSource) for row in rows: newDFext = row.getValue("Shape").extent df.extent = newDFext somepath = "C:/Temp/" + row.getValue("NAME") + ".pdf" arcpy.mapping.ExportToPDF(mxd, somepath)
... View more
01-12-2018
10:31 AM
|
0
|
0
|
4765
|
|
POST
|
Unfortunately getPageNumberFromName does NOT take a wildcard, it must be a fully qualified name. That would be a good enhancement. Here are some snippets of code. NOTE - this is from the 2.1 help. Arcpy.mp map series are not supported prior to 2.1 import arcpy, os, sys relpath = os.path.dirname(sys.argv[0]) p = arcpy.mp.ArcGISProject(relpath + "\\MapSeries\\US_States.aprx") l = p.listLayouts()[0] if not l.mapSeries is None: ms = l.mapSeries if ms.enabled: ms.currentPageNumber = ms.getPageNumberFromName("Rhode Island") ms.exportToPDF(relpath + "\\Output\\Ex1_RI.pdf", "CURRENT", resolution=300) ms.currentPageNumber = ms.getPageNumberFromName("Washington") ms.exportToPDF(relpath + "\\Output\\Ex1_WA.pdf", "CURRENT", resolution=300) import arcpy, os, sys relpath = os.path.dirname(sys.argv[0]) p = arcpy.mp.ArcGISProject(relpath + "\\MapSeries\\US_States.aprx") l = p.listLayouts()[0] if not l.mapSeries is None: ms = l.mapSeries if ms.enabled: for pageNum in range(1, ms.pageCount + 1): ms.currentPageNumber = pageNum print("Exporting page {0} of {1}".format(str(ms.currentPageNumber), str(ms.pageCount))) l.exportToPNG(relpath + "\\Output\\Ex2_{0}".format(str(ms.currentPageNumber) + ".png")) import arcpy, os, sys relpath = os.path.dirname(sys.argv[0]) p = arcpy.mp.ArcGISProject(relpath + "\\MapSeries\\US_States.aprx") l = p.listLayouts()[0] if not l.mapSeries is None: ms = l.mapSeries if ms.enabled: ms = l.mapSeries indexLyr = ms.indexLayer arcpy.SelectLayerByAttribute_management(indexLyr, 'NEW_SELECTION', "SUB_REGION = 'New England'") ms.exportToPDF(relpath + "\\Output\\Ex3_SelectedFeatures.pdf", 'SELECTED')
... View more
01-03-2018
10:23 AM
|
0
|
4
|
6539
|
|
POST
|
You should be able to do what you need. Here is a list of the 2.1 MapSeries Class methods and properties: Methods exportToPDF(out_pdf, {page_range_type}, {page_range_string}, {multiple_files}, {resolution}, {image_quality}, {compress_vector_graphics}, {image_compression}, {embed_fonts}, {layers_attributes}, {georef_info}, {jpeg_compression_quality}, {clip_to_elements}, {show_selection_symbology}) getPageNumberFromName(page_name) refresh() Properties currentPageNumber—Read/Write; Long enabled—Read/Write; Boolean indexLayer—Read-only; Layer object MapFrame—Read-only; MapFrame object pageCount—Read-only; Long pageNameField—Read-only; GP Field object selectedIndexFeatures—Read-only; Python list of corresponding page numbers
... View more
01-02-2018
03:27 PM
|
1
|
6
|
6539
|
|
POST
|
For 2.1 we added mostly arcpy.mapping (DDP) equivalent capabilities. Map Series authoring/setup still needs to be done in the UI. Jeff
... View more
01-02-2018
02:31 PM
|
1
|
8
|
4502
|
|
POST
|
Hello Suryakant, I'm really glad you found a work-around for what you need at 2.0 but I'm curious if it really solves the issue. It looks like you found a way to execute the existing New Layout command but how are you adding new elements to it? At 2.1, not only will you be able to create layouts, open them in panes, but you will be able to create all layout element types. Have you found a way to do that too? Jeff
... View more
11-30-2017
09:22 AM
|
0
|
1
|
2022
|
|
POST
|
The creation of layouts and layout elements is coming at 2.1. Currently you can only reference existing layouts. Here is a snippet to create a new, simple layout: //Create a new layout project item layout in the projectLayout newLayout = await QueuedTask.Run<Layout>(() => { newLayout = LayoutFactory.Instance.CreateLayout(8.5, 11, LinearUnit.Inches); newLayout.SetName("New 8.5x11 Layout"); return newLayout; });//Open new layout on the GUI threadProApp.Panes.CreateLayoutPane(newLayout); Another example on managing layout views //A layout view may exist but it may not be active//Iterate through each pane in the application and check to see if the layout is already open and if so, activate itforeach (var pane in ProApp.Panes) { var layoutPane = pane as ILayoutPane; if (layoutPane == null) //if not a layout view, continue to the next pane continue; if (layoutPane.LayoutView.Layout == lyt) //if there is a match, activate the view { (layoutPane as Pane).Activate(); return; } } There will be many more layout pro snippets addressing these new capabilities when 2.1 is released. Jeff
... View more
10-30-2017
10:43 AM
|
2
|
3
|
2022
|
|
POST
|
Lev - Raster stretched is definitely on the list for 2.2 (as well as UnclassedColors and ProportionalSymbols). We did not have the time to finish it (them) for 2.1. I will look into RGB as being a possibility. Jeff
... View more
10-27-2017
07:01 AM
|
1
|
1
|
3669
|
|
POST
|
Hello Lev, I'm with the Esri Python map automation team. I really appreciate your feedback. There is no question that we need more capabilities in Pro to reach ArcMap equivalency. You bring up two very good examples: UpdateLayer and UpdateTime. Please understand that we are aware of most of the missing pieces and have our best intentions of getting them into the core arcpy.mp module. We do NOT have a replacement for UpdateLayer in 2.0 (or even the upcoming 2.1 release). UpdateLayer was mostly used at transferring symbology from a layer file to another layer. It worked really well for transferring that symbology from a similar layer file to another similar layer but it broke down quickly if data ranges, feature types, etc were different. So rather than focusing our time on UpdateLayer - we spend a lot of time exposing Symbology in the Pro arcpy.mp API (which we got overwhelming requests for) . Now you can explicitly change renderers (5 supported in 2.0 and more to come in future releases), and even get down to the individual items/classes and change symbol properties. So in a way, the new symbology API provides an alternative approach to UpdateLayer. That is NOT to say it is a replacement or we won't eventually provide an UpdateLayer equivalent, it is just not on our near-term lists. We want to make improvements to it because, like I said, it was good with symbology but lacked other common capabilities like updating ONLY specific properties of a layer. For example, a common request we get is to update ONLY field aliases. We would love to hear more feedback on this. UpdateTime is something we have prioritized for 2.2. We know time is crucial to map automation scenarios and we hoped to get it in sooner but time ran out (bad pun intended). For 2.1 we be exposing: - MapSeries (DataDrivenPages) capabilities - WebMapPrinting capabilities - ConvertWebMapToArcGISProject - MapView class - ConvertLayoutFileToLayout - And other mics members like ActiveMap, etc. Thanks again for your feedback! Jeff Barrette
... View more
10-25-2017
08:32 AM
|
2
|
4
|
3669
|
|
POST
|
The only way I can help is if I can get the project. I know you said you have sensitive data. If you want to pursue this, please contact me at [email protected].
... View more
09-18-2017
10:08 AM
|
1
|
1
|
3872
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-05-2025 11:20 AM | |
| 3 | 06-05-2025 09:21 AM | |
| 1 | 05-14-2025 01:19 PM | |
| 2 | 04-24-2025 07:54 AM | |
| 1 | 03-15-2025 07:19 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|