|
POST
|
David, I looked into Python CIM Access but because the clipping layer uses binary reference for performance purposes, it can't be done. It did stimulate a conversation that we should add this into our managed API. Thanks for bringing it up. Jeff - Layout and arcpy.mp teams
... View more
06-21-2021
02:39 PM
|
0
|
0
|
4659
|
|
POST
|
Thank you for bringing this to our attention. This was obviously a copy/paste error that describes clip to graphics. As Tim suggests, the georef_mapframe parameter is what allows this to happen. We will fix the help topic. Thanks, Jeff - Layout and arcpy.mp teams
... View more
06-16-2021
07:41 AM
|
1
|
0
|
3762
|
|
IDEA
|
The layout team is currently considering part of this idea. Particularly the idea of adjusting font size with a minimum threshold.
... View more
06-15-2021
12:12 PM
|
0
|
0
|
2537
|
|
POST
|
Hello @JeffThomasILM , please add the idea. It allows others to see and helps us prioritize. Add your other ideas too. Jeff - Layout and arcpy.mp teams.
... View more
06-15-2021
10:08 AM
|
0
|
0
|
2506
|
|
POST
|
That is unfortunate. I hoped we had a solution. 2 others have confirmed my findings. The best thing to do is to somehow get a reproducible case to technical support so your situation can be evaluated. Jeff
... View more
06-14-2021
10:39 AM
|
0
|
1
|
4790
|
|
POST
|
Hi Jesse, We just had a support issue created where if a label class has a PYTHON expression then export via arcpy.mp to PDF causes the script to hang. Turning of labels, as you discovered, help but so does does changing the expression engine from Python to Arcade. Can you please confirm? This was a new bug for 2.8. If its the same thing, we prioritized it as a 2.8 patch candidate. Jeff - Layout and arcpy.mp teams.
... View more
06-11-2021
02:16 PM
|
0
|
1
|
5801
|
|
POST
|
Ian, we might have found the cause. Do you have any layers with labels that use simple or advanced Python expressions? A customer just reported they are having a similar hang as you and turning off the labeled or changing the expression engine (eg., to Arcade) allows export. Jeff - Layout and arcpy.mp teams
... View more
06-11-2021
07:46 AM
|
0
|
3
|
4823
|
|
POST
|
Ian, the map not displaying is an interesting clue. If your steps are clear and reproducible and you can produce a project package (ppkx), you are welcome to send it directly to me ([email protected]). Jeff
... View more
06-08-2021
01:57 PM
|
0
|
0
|
4837
|
|
POST
|
Ian, I can NOT reproduce, even on 2.8 final. Just to be clear, I've created a script tool in a toolbox (tbx) that has no parameters and runs your 3 lines of code. Again, can you reproduce this issue with other projects / layouts? I could be data specific. In these cases it makes the most sense to open an Esri support instance where they have the resources to help you diagnose the problem. Jeff = Layout and arcpy.mp teams
... View more
06-08-2021
01:26 PM
|
0
|
1
|
4839
|
|
POST
|
Jesse, I just ran your exact code (plus I added the Toolbox class to make it complete) and it worked for me on Pro 2.8 and Pro 2.7. Are there any other special Map Series settings? For example, are you setting page numbers in any way to either have a starting number or using a page number field? Jeff - arcpy.mp and Layout teams
... View more
06-07-2021
01:22 PM
|
0
|
1
|
5861
|
|
IDEA
|
John, The Maplex settings are available to Python via CIM access. Here is a help topic that explains what that means: https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm If you were to provide a couple of workflows or settings you are trying to modify, I might be able to provide a sample or two. Jeff - arcpy.mp and Layout teams
... View more
06-07-2021
08:07 AM
|
0
|
0
|
2090
|
|
POST
|
Ian, I can NOT reproduce this issue using the code you have above. Can you reproduce with other layouts in other projects? Is there something unique about the project, the data, do you have multiple layouts with the same name, etc?
... View more
06-03-2021
03:59 PM
|
0
|
3
|
4854
|
|
POST
|
You can use arcpy.mp to change the extent of an active map view BUT only using scripts run inside the application and only against the active view. Check out the MapView class: https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/mapview-class.htm We do hope in the near term that we will be able to set the active view (vs only working with the current active view). This will have its limitations as well. The idea is you would call something like OpenMapView and it would simply open a new view, with the default extent, and it would become active. Again, the limitation exists because we can't distinguish multiple map views pointing to the same map.
... View more
06-03-2021
03:50 PM
|
0
|
8
|
16168
|
|
POST
|
Hello Wesley, This can be accomplished using Python CIM Access: https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm Here is a snippet of code that does what you need. p = arcpy.mp.ArcGISProject('current')
lyt = p.listLayouts()[0]
#Get the layout's CIM definition
lyt_cim = lyt.getDefinition('V2')
#Iterate though all layout elements to find the Legend element
for elm in lyt_cim.elements:
if elm.name == "Legend":
#Legend item changes
for itm in elm.items:
if itm.name == "GreatLakes":
#Update visibility
itm.showLayerName = True
itm.showHeading = False
#Set the CIM changes back to the layout
lyt.setDefinition(lyt_cim) There are many Python CIM Access samples located here (including legenditem changes): https://www.arcgis.com/home/item.html?id=8772f61319584882bb697ba003030636 Jeff - arcpy.mp and Layout teams
... View more
05-19-2021
01:25 PM
|
3
|
1
|
3333
|
|
POST
|
Thank you for your feedback. I was able to reproduce the snapping toggle behavior for layouts. It does get persisted for maps / feature editing. I put in a bug to address this issue. Jeff - Layout and arcpy.mp teams
... View more
05-14-2021
01:52 PM
|
1
|
1
|
1552
|
| 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
|