|
POST
|
Hello @IlkaIllers1 . Position should not matter. They are sorted in alphabetical order in the Catalog pane but you should reference the layout by name. for example, lyt = aprx.listLayouts(wildcard='Some Layout Name')[0] Because it is a list, you still need to specify an index number to return a Layout object from the list but if your wildcard value is unique enough, there should be only one element in the list (with index=0) Jeff - Layout and arcpy.mp teams
... View more
11-17-2023
09:26 AM
|
0
|
2
|
2727
|
|
IDEA
|
This Idea has been implemented in ArcGIS Pro 3.2. Please see the What's New documentation for more new features in Pro 3.2. The Your Ideas in ArcGIS Pro 3.2 blog and video have been posted to the Esri Community blog. You can take a look at these to see your idea and all others that were implemented in this release of ArcGIS Pro. Jeff - Layout and arcpy.mp teams
... View more
11-15-2023
10:53 AM
|
0
|
0
|
1952
|
|
IDEA
|
This Idea has been implemented in ArcGIS Pro 3.2. Please see the What's New documentation for more new features in Pro 3.2. The Your Ideas in ArcGIS Pro 3.2 blog and video have been posted to the Esri Community blog. You can take a look at these to see your idea and all others that were implemented in this release of ArcGIS Pro. Jeff - Layout and arcpy.mp teams
... View more
11-15-2023
10:52 AM
|
0
|
0
|
1545
|
|
IDEA
|
This Idea has been implemented in ArcGIS Pro 3.2. Please see the What's New documentation for more new features in Pro 3.2. The Your Ideas in ArcGIS Pro 3.2 blog and video have been posted to the Esri Community blog. You can take a look at these to see your idea and all others that were implemented in this release of ArcGIS Pro. Jeff - Layout and arcpy.mp teams
... View more
11-15-2023
10:52 AM
|
0
|
0
|
2634
|
|
IDEA
|
This Idea has been implemented in ArcGIS Pro 3.2. Please see the What's New documentation for more new features in Pro 3.2. The Your Ideas in ArcGIS Pro 3.2 blog and video have been posted to the Esri Community blog. You can take a look at these to see your idea and all others that were implemented in this release of ArcGIS Pro. Jeff - Layout and arcpy.mp teams
... View more
11-15-2023
10:51 AM
|
0
|
0
|
1383
|
|
IDEA
|
This Idea has been implemented in ArcGIS Pro 3.2. Please see the What's New documentation for more new features in Pro 3.2. The Your Ideas in ArcGIS Pro 3.2 blog and video have been posted to the Esri Community blog. You can take a look at these to see your idea and all others that were implemented in this release of ArcGIS Pro. Jeff - Layout and arcpy.mp teams
... View more
11-15-2023
10:51 AM
|
0
|
0
|
1560
|
|
IDEA
|
This Idea has been implemented in ArcGIS Pro 3.2. Please see the What's New documentation for more new features in Pro 3.2. The Your Ideas in ArcGIS Pro 3.2 blog and video have been posted to the Esri Community blog. You can take a look at these to see your idea and all others that were implemented in this release of ArcGIS Pro. Jeff - Layout and arcpy.mp teams
... View more
11-15-2023
10:50 AM
|
0
|
0
|
2781
|
|
IDEA
|
@PaulDziemiela21 , perhaps there is some understandable confusion with the term 'Map' - project item that defines a list of symbolized layers and a spatial reference like in the original statement "supporting three UTM Zones" vs a 'MapView' - a window to display a Map where you can have one or many views displaying the same map, perhaps each with a different extents, for example. For managing a map project item, we have the ArcGISProject.deleteItem() method. I believe this addresses the original idea that we closed. If the discussion was intended to address closing MapView's then ... MapViews do NOT have unique names so it is not currently possible in arcpy.mp to reference a specific MapView (e.g., 1 out of X) to close it. The best, current solution is to reference the project item (map, layout, or report) and call openView(). This will open and activate the view. If you don't want too many views open, there is also the option to call ArcGISProject.closeViews(). This allows you to do some clean up before opening a new map view. There is a discussion about this in the same help topic listed above. It is very easy to close all views and then open the one or select few you want to see. Also understand that these map views exist when the application is open. If you are running Python scripts outside of the application, you can't work with views at all. I completely understand your requirement but currently there is no way we can address it. Jeff - Layout and arcpy.mp teams
... View more
11-06-2023
08:42 AM
|
0
|
0
|
2461
|
|
IDEA
|
@AlfredBaldenweck have you tried using functions like Map.openView()? We currently don't have the ability to specifically close or even reference a particular view because they are not named and you can have many views open that all point to the same map, for example. So we introduced openView on Map, Layout, and Report objects. It will open and activate a view for that specific object. If you don't want to keep opening extra views, we also introduced ArcGISProject.closeViews(). THis was you can close everything and open a specific, active view. I hope this helps your scenario. Jeff - Layout and arcpy.mp teams
... View more
11-02-2023
08:11 AM
|
0
|
0
|
957
|
|
IDEA
|
A fix was made in Pro 3.2 that enables modifying query layers via Python CIM Access. We will post a sample to this page.
... View more
11-01-2023
08:53 PM
|
0
|
0
|
2487
|
|
IDEA
|
@AlfredBaldenweck this can be accomplished a little easier using either type() or isInstance, for example, p = arcpy.mp.ArcGISProject('current') av = p.activeView if type(av) == arcpy._mp.MapView: print("MAPVIEW") elif type(av) == arcpy._mp.Layout: print("LAYOUT") else: print("NONE") or p = arcpy.mp.ArcGISProject('current') if isinstance(pactiveView, arcpy._mp.Layout): # work with the layout elif isinstance(p.activeView, arcpy._mp.Map): # work with the map else: # Nothing found, active element isn't a map or layout Jeff - Layout and arcpy.mp teams
... View more
11-01-2023
07:18 PM
|
0
|
0
|
965
|
|
IDEA
|
@eclecticlearner multiple map views that point to the same MAP all display the same data. The only differences is that they can each have their own camera information (i.e., they can display different scales or have different rotations, etc independent of one another). So even if you edit data in one map view, the other map views will automatically update. And it is NOT possible for map views pointing to the same MAP to have different symbology or collections of layers (that is all managed on the MAP). The issue here is that map views don't have names that differentiate one map view from the other so we can't find a specific map view and close only it. If you are ok with the idea that calling something like MAP.closeView() will close all map views that reference the same MAP, that could be possible. But if you require being able to close a specific view, we may not do that due to current limitations and the intent of arcpy.mp. Arcpy.mp is intended for map and project automation, not application customization (that is what the .Net SDK is intended for). And arcpy.mp can also be run out of process (outside the application). Scripts run out of process can NOT manipulate views. This is documented in many locations in our help. Our original design was simple in intent. You do something to a map or layout and you want to see the changes in the application. Because we have no way of knowing if the mapview or layoutview is open or focused, we simply provided Map/Layout.openView(). This would create a duplicate view if it happened to be opened already. That is why we also provided Project.closeViews(). This allows you to close all views before opening the one view you want to see updates. Jeff
... View more
09-28-2023
08:43 AM
|
0
|
0
|
2296
|
|
IDEA
|
@eclecticlearner its possible that a map view or layout view could be opened multiple times. For example, you could have 3 map view tabs (e.g., Map, Map, Map). Do you want to close a specific, singular map view OR would you be ok with closing all of them (that have the same label). The former is currently not possible, the later might be. At 3.2, there is a new number/sequence where the above example would show as Map (1/3), Map (2/3) and Map (3/3). We would need to investigate if its reasonable to close a view based on an auto generated suffix. I think that may introduce some challenges. Jeff - Layout and arcpy.mp teams
... View more
09-27-2023
10:14 AM
|
0
|
0
|
2316
|
|
IDEA
|
As pointed out by @JohannesLindner this is already available. Changing status to already offered. Jeff - Layout and arcpy.mp teams
... View more
09-27-2023
09:48 AM
|
0
|
0
|
1217
|
|
IDEA
|
@ted , @AndyRitchie Would Element.applyStyle(style_Item) to an existing element be sufficient? Exposing the entire symbology model to arcpy.mp would be a very large undertaking and changing the color of a border line symbol can be done via Python CIM access. At 3.2 we've added a number of Layout/Map element constructor methods. (e.g.,ArcGISProject.createGraphicElement(), or Layout.createMapFrame() ). The methods include an optional { style_item} parameter that gets associated with the element when created. To help with apply style items during creation, at 3.2 we added ArcGISProject.listStyleItems(). At 3.3 we plan to allow users to automate adding styles to a project. Thanks, Jeff - Layout and arcpy.mp teams
... View more
09-27-2023
09:02 AM
|
0
|
0
|
1294
|
| 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
|