|
POST
|
Hello Ana, I could not reproduce the issue using your same code. I was able to successfully run your code. There where some weird embedded tabs but that was probably just a paste from this forum page. Make sure you have the field name correct. It defaults to the first field if the name you specify is not valid. If this used to work and no longer does it might be data specific. It would be best to open an issue with Esri support to get help developing a reproducible case that I can investigate. Jeff - Layout and arcpy.mp teams
... View more
08-23-2021
08:38 AM
|
0
|
0
|
1256
|
|
IDEA
|
The Layout team does hope to implement this in the Pro application but not for a few releases. In the meantime, this was always possible using Python Map Automation. There is a python sample and detailed README at this location: https://www.arcgis.com/home/item.html?id=eba53351ceb84b58b505dec5272e526c Jeff - Layout and arcpy.mp teams
... View more
08-19-2021
07:31 AM
|
0
|
0
|
3826
|
|
IDEA
|
Good news. At Pro 2.9 we are introducing the Legend and Legend Item styles. There will be a gallery of styles to choose from when you insert a new legend or legend item. The styles can be modified and shared like other styles in the Pro application. Jeff - Layout and arcpy.mp teams.
... View more
08-17-2021
02:45 PM
|
0
|
0
|
6003
|
|
POST
|
Hello Timothy, We do have in our future plans to support directly updating data sources in pagx/mapx files but in the meantime there is an easy work around. Import the pagx into an existing project, change the data sources using the techniques documented and then use Layout.exportToPAGX (or Map.exportToMAPX) to overwrite your existing file. Jeff - Layout and arcpy.mp teams
... View more
08-11-2021
07:49 AM
|
0
|
1
|
1923
|
|
IDEA
|
Will be available in the Pro 2.9 release. Jeff - Layout and arcpy.mp teams
... View more
08-06-2021
09:40 AM
|
0
|
0
|
4582
|
|
POST
|
Timothy, thanks for posting this question. I'm on the arcpy.mp and Layout teams and your inquiry forced me to look into a couple of things. First, my initial thoughts would be to automate with Python without using a MapSeries but picture attachments on a layout are only available with a map series. So you would need a map series simply to iterate through your point locations - so you can iterate through your pictures for each point location. The layout team is looking the possibility of making attachments available without a map series enabled. Second - arcpy.mp does NOT allow you to change the attachment photo. Picture.sourceImage returns the filter string but changing it an applying it back does not update the layout. This is a bug and we will fix it. A work-around for now is to use Python CIM access instead of the managed API for setting sourceImage. p = arcpy.mp.ArcGISProject('current')
lyt = p.listLayouts()[0]
lyt_cim = lyt.getDefinition('V2')
for elm in lyt_cim.elements:
if elm.name == "Picture":
pic.graphic.sourceURL = '<dyn filter="12"/>'
lyt.setDefinition(lyt_cim) Finally, you are on the right track and this logic will require python automation. Take a look at the following sample. It is very similar to your scenario but rather than there being 0-many pages or 0-many pictures on a page, it deals with the idea of there needed to be 0-many inset maps per layout. This application persists all the settings in a database table and simply recreates each layout on demand. https://www.arcgis.com/home/item.html?id=82b99b5593e54e57b740e3898fb14c5f I hope this helps! Jeff - arcpy.mp and Layout teams
... View more
07-29-2021
10:37 AM
|
0
|
0
|
1653
|
|
IDEA
|
Accessing a Layer's display properties are not directly accessible via the curated arcpy.mp API but is accessible via Python CIM Access: https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm Here is a downloadable set of CIM script examples and one of them changes a layer's display properties. https://www.arcgis.com/home/item.html?id=8772f61319584882bb697ba003030636 Jeff - Layout and arcpy.mp teams
... View more
07-21-2021
10:46 AM
|
0
|
0
|
1991
|
|
POST
|
Jeremy, We also have future plans to introduce a "fitting strategy" with polygon text (similar to legends). The easiest and minimum ship optoin is:"Adjust font size" (with a minimum font size property). We could also consider things like "adjust polygon width / height / or both" and growth would be based on anchor position. Jeff - Layout and arcpy.mp teams
... View more
07-20-2021
12:03 PM
|
0
|
2
|
3532
|
|
POST
|
Jeremy, have you tried Element.DoesFitFrame? string text = "Some Text String that is really long and is forced to wrap to other lines so that we can see the effects. Some Text String that is really long and is forced to wrap to other lines so that we can see the effects." as String; GraphicElement recTxtElm = LayoutElementFactory.Instance.CreateRectangleParagraphGraphicElement(layout, env, text, sym); recTxtElm.SetName("New Rectangle Text"); TextElement txtElm = recTxtElm as TextElement; while (!txtElm.DoesFitFrame) { var txtProp = txtElm.TextProperties; txtProp.FontSize = txtProp.FontSize - 1; txtElm.SetTextProperties(txtProp); System.Windows.MessageBox.Show(txtProp.FontSize.ToString()); };
... View more
07-20-2021
10:24 AM
|
1
|
4
|
3545
|
|
POST
|
An enabled map series puts a Map Frame constraint on the Map associated with it to preserve the map series extent options. Have your tried temporarily disabling the map series before creating your export? You can disable a map series in the map series setting dialog. Is this for a one-off map you want to produce or are you trying to automate the process to set extents that go beyond the feature in the map series index layer? Jeff - Layout and arcpy.mp teams
... View more
07-16-2021
10:37 AM
|
1
|
0
|
1712
|
|
POST
|
Thank you for reporting this. This is a known issue and will be addressed in the 2.8.2 patch. Jeff - Layout and arcpy.mp teams
... View more
07-14-2021
03:20 PM
|
1
|
1
|
1218
|
|
POST
|
In arcpy.mapping (ArcMap) we had a Legend.isOverFlowing property. We have plans to add this to Pro as well. Hopefully in 2.9 or the next release. Jeff - arcpy.mp and Layout Teams
... View more
07-07-2021
10:51 AM
|
0
|
0
|
2144
|
|
POST
|
This is going to be addressed in the 2.8.2 patch. Jeff - arcpy.mp and Layout teams
... View more
07-07-2021
10:26 AM
|
3
|
1
|
6373
|
|
IDEA
|
Would the experience we currently have with Table Frames be helpful? Instead, Add Layer might have a pull-right that lists all the layers not in the legend. Your idea to also have a context menu on a layer to add it to a legend is different but may be possible. I understand that dragging can be difficult especially if you have many maps / layers. Jeff - Layout and arcpy.mp teams
... View more
06-30-2021
12:11 PM
|
0
|
0
|
8748
|
|
IDEA
|
Sandy, Thank you for reporting this! I could reproduce by setting the scale ranges via the Scale tab in the symbology pane. Setting scale ranges on the layer works as expected. Can you confirm that, please? I will create and issue and hopefully we will be able to address it soon. Jeff - Layout and arcpy.mp team
... View more
06-29-2021
08:18 AM
|
0
|
0
|
3495
|
| 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
|