|
POST
|
@MarkDrosnes, I can NOT reproduce this issue. Would it be possible to send me an email with a layer package to jbarrette@esri.com. Jeff - Layout and arcpy.mp teams
... View more
01-23-2023
01:30 PM
|
0
|
0
|
2871
|
|
IDEA
|
@RenePretorius @RoseF again, I'm just reminding you that arcpy.mp is a viable work-around before the Layout team has a chance to consider, design and implement a solution in the UI. Jeff - Layout and arcpy.mp teams
... View more
01-17-2023
08:42 AM
|
0
|
0
|
4013
|
|
IDEA
|
@Rene @RoseF this is definitely an enhancement that needs to be reviewed but in the meantime, if you are comfortable with using Python, this is something arcpy.mp could be used for. Here is a sample that creates two map series extents on a single page. It is the opposite of what you are requesting but the concept is the same. https://www.arcgis.com/home/item.html?id=3ba3d812f5cb483da34d009840a7c4da Jeff - Layout and arcpy.mp teams
... View more
01-17-2023
07:56 AM
|
0
|
0
|
4026
|
|
IDEA
|
@jdaniel this was addressed in 3.1 based on @taylor 's workflow and scripts. Please test when ArcGIS Pro 3.1. It is scheduled to be released in late Feb. Jeff - Layout and arcpy.mp teams
... View more
01-12-2023
02:19 PM
|
0
|
0
|
4957
|
|
POST
|
We have plans to address this in Pro 3.2. so that it can be done using arcpy.mp. Jeff - Layout and arcpy.mp teams
... View more
12-28-2022
08:44 AM
|
3
|
3
|
3066
|
|
POST
|
Jeremiah, That is because I have a layout with a map series in a project that ends with the characters 'MS'. For listLayouts, the first parameter takes the layout name or a wildcard '*' combined with characters that will return a unique name. Arcpy.mp can be really powerful once you get the hang of it. Here is a tutorial that might help you get a better understanding. https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/tutorial-getting-started-with-arcpy-mp.htm Jeff - Layout and arcpy.mp teams
... View more
12-27-2022
08:04 AM
|
1
|
0
|
2775
|
|
POST
|
Hi Jeremiah, The reason you are only getting one page instead of all pages is because you are exporting the Layout, not the MapSeries object. Here is some code to do what you might need. p = arcpy.mp.ArcGISProject('current')
lyt = p.listLayouts('*MS')[0]
ms = lyt.mapSeries
ms.exportToPDF(r"C:\Temp\OutName.pdf", 'ALL',multiple_files='PDF_MULTIPLE_FILES_PAGE_NAME')
... View more
12-21-2022
02:03 PM
|
1
|
2
|
2805
|
|
POST
|
We have plans to add this in ArcGIS Pro 3.2. Jeff - Layout and arcpy.mp teams
... View more
12-20-2022
08:54 AM
|
0
|
0
|
2743
|
|
POST
|
@TylerT I don't think so. Think of the CIM as a way of setting properties, not methods. We have plans for 3.2 to add this capability (and other updates) to our export functions. Jeff - Layout and arcpy.mp teams
... View more
12-15-2022
05:20 PM
|
0
|
0
|
2479
|
|
IDEA
|
This is something we can consider but it will be a long time before we can provide this level of detail via the curated API. In the meantime, the CIM may be an option. Before reviewing the code below it may be worth reviewing the Python CIM Access help topic: https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm I started with: As suggested in the topic above, I created a before and after layer, saved them to LYRX files and compared the JSON differences. Here is the code based on what I see above. The before layer didn't have visual variable applied so I had to create the appropriate CIM objects, set the values to match above and then apply the newly created visual variable to the empty visual variable list associated with the layer. p = arcpy.mp.ArcGISProject('current')
m = p.listMaps('Map')[0]
l = m.listLayers('*BEFORE')[0]
maxLabel = 360 #this could be automated
#Create a rotation visual variable via the CIM
l_cim = l.getDefinition('V3')
visVar = arcpy.cim.CreateCIMObjectFromClassName('CIMRotationVisualVariable', 'V3')
#Xinfo
visVar.visualVariableInfoX.randomMax = maxLabel
visVar.visualVariableInfoX.visualVariableInfoType = "None"
#Yinfo
visVar.visualVariableInfoY.randomMax = maxLabel
visVar.visualVariableInfoY.visualVariableInfoType = "None"
#Zinfo
visVar.visualVariableInfoZ.randomMax = maxLabel
visVar.visualVariableInfoZ.visualVariableInfoType = "Expression"
#Create expression for Xinfo
expInf = arcpy.cim.CreateCIMObjectFromClassName('CIMExpressionInfo', 'V3')
expInf.title = "Custom"
expInf.expression = "$feature.Rotation" #field called rotation
expInf.returnType = "Default"
visVar.visualVariableInfoZ.valueExpressionInfo = expInf
visVar.rotationTypeZ = "Arithmetic"
l_cim.renderer.visualVariables.append(visVar) #Apply visual variable
l.setDefinition(l_cim) #set back to layer And the final result: I hope this helps, Jeff - Layout and arcpy.mp teams
... View more
12-14-2022
08:16 AM
|
0
|
0
|
2445
|
|
POST
|
Thanks for the feedback. This is something we have planned for near term. We did support it for ArcMap (arcpy.mapping) but It is currently not supported as a separate parameter for exporting. Jeff - Layout and arcpy.mp teams
... View more
11-09-2022
01:06 PM
|
0
|
0
|
2550
|
|
IDEA
|
I agree this is definitely a personal preference and would prefer to leave it alone. If we changed it we would have to be extremely careful not to affect existing projects / layouts. Jeff - Layout and arcpy.mp teams
... View more
10-20-2022
12:35 PM
|
0
|
0
|
1061
|
|
IDEA
|
@taylor I was able to reproduce your error. I've created a bug in our system and we are investigating it. Thanks you! Jeff - Layout and arcpy.mp teams
... View more
10-10-2022
10:08 AM
|
0
|
0
|
5234
|
|
IDEA
|
The Layout object in ArcGIS Pro has pageWidth, pageHeight, and pageUnits properties. This will not be supported in ArcMap. Jeff - Layout and arcpy.mp teams.
... View more
10-10-2022
08:40 AM
|
0
|
0
|
377
|
|
POST
|
@Jimmy_Simpson I did see your code and support may have given you that information because I provided it to them. It works for me. I don't know of another work around. Jeff
... View more
10-06-2022
03:10 PM
|
0
|
0
|
2085
|
| 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
|