|
POST
|
This is a known issue. It appears that multiple Python and, and as you report, .Net libraries strip away this information. We are investigating the issue. Jeff - Layout and arcpy.mp teams
... View more
04-21-2022
02:06 PM
|
1
|
0
|
1487
|
|
POST
|
Can you provide the snippet of code you are using AND perhaps a screenshot of the legend and legenditem that is not working as expected? I see above that you noted that you figured it out but I'm not sure if that is current. Jeff
... View more
04-08-2022
11:26 AM
|
0
|
0
|
6637
|
|
IDEA
|
We hope to include a number of project item management functions (e.g., Delete, Copy, Add folder connections, database connections ,etc).
... View more
04-07-2022
09:08 AM
|
0
|
0
|
7859
|
|
IDEA
|
This is certainly worth considering. It would have to be a list because there can be many Maps (data frames) and always one Layout. The only catch-22 is with the names of the objects in the list. For example, if the Layout name already existing in the project you are importing into, the new layout would have a sequential number appended to name because two layout project items can't have the same name. Would you expect the list to have the original names or the new names, if a conflict exists? Jeff - arcpy.mp and Layout teams
... View more
04-04-2022
09:08 AM
|
0
|
0
|
3199
|
|
IDEA
|
This is addressed in Pro 3.0. Similar to your idea, we have an OpenView() method on the Layout and Map objects. We also have a ArcGISProject.CloseViews() method too. So to address your scenario, before importing a pagx, you might want to also close all other map and layout views. p = arcpy.mp.ArcGISProject('current') p.importDocument(pagx_path) p.closeViews() #Default is "MAPS_AND_LAYOUTS" or "MAPS" or "LAYOUTS" lyt = p.listLayouts('MyLayout')[0] lyt.openView() I hope you are excited by this new feature. Jeff - Layout and arcpy.mp Teams
... View more
03-30-2022
12:46 PM
|
0
|
0
|
6875
|
|
IDEA
|
Hi Brett, This is a great example of using Python CIM Access: https://pro.arcgis.com/en/pro-app/2.8/arcpy/mapping/python-cim-access.htm p = arcpy.mp.ArcGISProject("CURRENT") for lyt in p.listLayouts(): lyt_cim = lyt.getDefinition('V2') newGuides = [] #Bottom horizontal guide botHorz = arcpy.cim.CreateCIMObjectFromClassName('CIMGuide', 'V2') botHorz.position = 0.25 botHorz.orientation = "Horizontal" newGuides.append(botHorz) #Top horizontal guide topHorz = arcpy.cim.CreateCIMObjectFromClassName('CIMGuide', 'V2') topHorz.position = lyt.pageHeight - 0.25 topHorz.orientation = "Horizontal" newGuides.append(topHorz) #Left vertical guide leftVert = arcpy.cim.CreateCIMObjectFromClassName('CIMGuide', 'V2') leftVert.position = 0.25 leftVert.orientation = "Vertical" newGuides.append(leftVert) #Right vertical guide rightVert = arcpy.cim.CreateCIMObjectFromClassName('CIMGuide', 'V2') rightVert.position = lyt.pageWidth - 0.25 rightVert.orientation = "Vertical" newGuides.append(rightVert) #Add guides and make sure they are turned on lyt_cim.page.guides = newGuides lyt_cim.page.showGuides = True #Set back to layer lyt.setDefinition(lyt_cim) Jeff - arcpy.mp and Layout teams
... View more
03-16-2022
02:07 PM
|
0
|
0
|
1293
|
|
IDEA
|
@Amadeus111 did you know you could hold down the Ctrl key and click? All layers at the same level will be automatically toggles on/off. This applies to group layers and grouped/grouped layers as well. Everything at the same level gets toggled. Jeff = arcpy.mp and Layout teams.
... View more
03-14-2022
01:58 PM
|
0
|
0
|
2255
|
|
POST
|
Andy, I'm not sure I understand your points or perhaps our 3.0 release will have your solution. At 3.0 we can currently differential between these view types: Map, Layout and Other (where Other = table, report, model builder, etc). But if you have a single "MapA" and have 3 views of it open, I'm not sure how you can distinguish one from the other. They all have the same name and same Map property. Yes, the extents MIGHT be different and you can interrogate the camera but how realistic is that? This is where OpenView() and CloseViews() work well together. If you want to specify a specific Map or Layout View, you can first call CloseViews (with an option to close all or just maps or just layouts) and then call Layout or MapA.OpenView() and set your camera info accordingly. I hope this makes sense. Are you going to the Developer Summit? I'd be happy to talk to you there. Jeff
... View more
02-28-2022
03:40 PM
|
0
|
0
|
2407
|
|
POST
|
3.0 is planned to be available by the User Conference in July. Concerning ListViews() this really isn't possible because views are NOT uniquely named. You can open a map view for the same map many times and every view can have a different extent. How would you know which one you wanted. I personally would like to see view with unique names so we could manage views better. Jeff - arcpy.mp and Layout teams.
... View more
02-28-2022
08:01 AM
|
0
|
2
|
14673
|
|
POST
|
First, we fixed an issue in 3.0 concerning Notebooks. Notebooks are a View so if you tried getting the activeView, None would be returned because a Notebook is NOT a mapview or layout view. At 3.0 Notebooks can appropriately reference the (previously) ActiveView. Second, also at 3.0 we introduced new functions to OpenViews (e.g., Map/Layout.OpenView()) and Project.CloseViews(). This allows you to active a view for a specific Map or Layout and modify the extent the way you want it. Also, we have the ability to closeviews to remove any unwanted clutter. NOTE - again, any API functions concerning Views in Pro MUST be executed within the application (PyWIn, NoteBooks, ScriptTools). These functions are ignored outside the application using stand alone scripts. Jeff - arcpy.mp and Layout teams.
... View more
02-24-2022
09:39 AM
|
1
|
6
|
14711
|
|
POST
|
We added this capability to the Pro SDK at 3.0. Thank you for your feedback. Jeff - arcpy.mp and Layout teams
... View more
02-24-2022
09:26 AM
|
0
|
0
|
5479
|
|
POST
|
Thank you for your feedback. The only solution currently is to remape the map frame and map surrounds to the current maps and then delete the newly added project item. We are looking into adding method parameters to accomodate the UI setting. Jeff - Layout and arcpy.mp teams.
... View more
02-07-2022
01:25 PM
|
0
|
2
|
5519
|
|
IDEA
|
David, Are you using ArcGIS Pro 2.9? I just compared output again and antialiasing settings are being honored as expected. If it is NOT working as you expect, please include a sample export line of code. p = arcpy.mp.ArcGISProject('current') lyt = p.listLayouts()[0] lyt.exportToTIFF(r"C:\Temp\AntiAliasing\AntiAlias_OFF_PyWin.tif", 300, '32-BIT_WITH_ALPHA', 'LZW', 100, False, False)
... View more
02-07-2022
12:41 PM
|
0
|
0
|
4155
|
|
POST
|
What version of Pro are you using? Note - both Simulate overprint and Output as image will strip away georeference information. Jeff - arcpy.mp and Layout teams
... View more
09-29-2021
10:46 AM
|
0
|
1
|
8667
|
|
IDEA
|
@DougBrowning I believe it can be done with arcpy.mp. Is Page 1 an ArcGIS Pro layout or is it a standalone PDF? Page 2 could be a separate layout in the same project with the tabular info and Page 3 could be a third Layout. You can use arcpy.mp to export each layout into a PDF and then use Python to add them all into a single page PDF. This code example appends 3 PDFs into one PDF (with 3 pages): https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/pdfdocument-class.htm Jeff
... View more
09-14-2021
03:17 PM
|
0
|
0
|
14314
|
| 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 |
2 weeks ago
|