|
POST
|
It would definitely be helpful if MapViews could be managed outside of the application. But MapViews only exist in the application AND you can have many map views of the same map so without a management system or some unique name to find the specific map view of interest, its not possible. And if the app is not opened, there definitely isn't the notion of an active map view. One possible work around is to create a map frame that is the same size of a layout. You can do everything you need to do against a map frame out of process (or outside the application). Jeff - arcpy.mp and Layout teams
... View more
04-13-2021
01:23 PM
|
1
|
10
|
16305
|
|
POST
|
Marvis, It shouldn't. Can you supply the few lines of code that grabs the field list? Jeff - arcpy.mp and Layout teams
... View more
04-12-2021
03:06 PM
|
0
|
10
|
6188
|
|
POST
|
Marvis, this is a known limitation with ActiveMap and ActiveView and is documented under ArcGISProject. "The activeMap property will return the map associated with either an active map view or the active map frame on an active layout view. The activeView property will either return a MapView object if a map view is active or it will return a Layout object if a layout view is active. Both of these properties are intended for scripts to be executed in the application, such as scripts run in the Python pane or those associated with a script tool. If no views are active, both properties will return None. These properties will always return a None value when a script is run outside of the application, because views are only relevant when the application is open. The MapView returned from the activeView property is the only way to change the extent associated with a map view. There are multiple functions available on the MapView class that allow you to change the extent, such as, the camera property, panToExtent, ZoomToAllLayers, and ZoomToBookmarks." Jeff - arcpy.mp and Layout teams
... View more
04-12-2021
03:04 PM
|
1
|
0
|
16325
|
|
POST
|
Hello Justin, I may not completely understand your scenario but have you tried modifying the symbol properties on the layer by setting it to the same rotation field the strip map uses? Go to the properties of the symbol and click the burger control (3 horizontal lines in the upper right corner). From there you can get to the properties in the screen grab below:
... View more
04-01-2021
02:08 PM
|
1
|
0
|
3078
|
|
IDEA
|
Leandra, This can be done using Python CIM Access. Here is the help topic that describes what that means: https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm This sample below assumes popups are already configured and it only toggles the visibility. If they are not already configured and customized they can be with Python CIM Access as well but it takes more CIM work. See Creating CIM objects in the document above. If you can give me an example of "Set expressions for the text" I can try to provide a sample snippet. p = arcpy.mp.ArcGISProject('current')
m = p.listMaps('Map')[0]
l = m.listLayers('GreatLakes')[0]
l_cim = l.getDefinition('V2')
l_cim.showPopups = True
l.setDefinition(l_cim) Jeff - Layout and arcpy.mp teams
... View more
03-30-2021
12:59 PM
|
0
|
0
|
3566
|
|
IDEA
|
Leandra, This can be done using Python CIM Access. Here is the help topic that describes what that means and there is even a sample that does exactly what you are requesting. https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm Code snippet under Example 2: Modify field properties # Reference a project, map, and layer using arcpy.mp
p = arcpy.mp.ArcGISProject('current')
m = p.listMaps('Map')[0]
lyr = m.listLayers('GreatLakes')[0]
# Get the layer's CIM definition
cim_lyr = lyr.getDefinition('V2')
# Make changes to field properties
for fd in cim_lyr.featureTable.fieldDescriptions:
if fd.fieldName == "OBJECTID":
fd.visible = False #Do not display this field
if fd.fieldName == "Shape_Area":
fd.alias = "Area (hectares)" #Change field alias
# Push the changes back to the layer object
lyr.setDefinition(cim_lyr) I hope this helps. Jeff - Layout and arcpy.mp teams
... View more
03-30-2021
11:32 AM
|
0
|
0
|
2706
|
|
IDEA
|
Hello Piet, Because I'm on the Layout team and I see this idea is labeled "Layout", I'll provide my feedback/opinion. I personally think this might be a not be good option to expose on a map / layout view. I don't like the idea of being able to delete a Feature Class or other data source from a Map View or Layout View. A data source could be used in many maps and even in many projects. I like the idea of having to go to the data source via the Catalog pane or Catalog view to manage data in a database. Your idea may save a few mouse clicks, and that I understand, but if someone were to inadvertently interpret the wrong option, then it could have a significant impact on other maps/projects that use the data. Do you agree? Jeff - Layout and arcpy.mp teams
... View more
03-04-2021
12:04 PM
|
0
|
0
|
3900
|
|
IDEA
|
Hello Dean. We have a mid-term issue: "Allow dynamic formatting when creating a map series output file name." It is related to another IDEA that we got a while ago: https://community.esri.com/ideas/4323-data-driven-pages-file-name-format I will add you new IDEA to our issue. I'm sure you are aware that with a very simple Python script you would have complete control of output file name. @KoryKramer is might be worth combining these two IDEAS, just an idea.
... View more
02-25-2021
08:22 AM
|
0
|
0
|
4078
|
|
IDEA
|
The solution to this issue is to use Point or Straight Text in the layout AND set horizontal positioning (via Text Symbol properties--> Position) to be centered. Rectangle or any paragraph text will NOT resize based on text length or size. The geometry stays fixed until resized manually or using some scripting/SDK logic. Straight text will resize but in order to get it to stay centered, you must first set the anchor to center and ALSO set the horizontal alignment.
... View more
02-24-2021
12:53 PM
|
0
|
0
|
3782
|
|
POST
|
This is has been addressed and will be included with the 2.7.2 patch. Jeff - Layout and arcpy.mp Teams
... View more
02-17-2021
07:40 AM
|
1
|
1
|
2113
|
|
IDEA
|
@tbpf thanks for your comments. I do want to follow up though. Obviously people have different needs and that is what makes this more complicated. Defaulting to the Project root doesn't necessarily prevent you from having to browse every time. For example, if you have an OUTPUT folder under your project folder, perhaps that is what you would like to have remembered specific to all layouts in the project. And if a project is large enough, it is possible some layouts might want to get exported to different locations. Do you see any harm in persisting at the layout level? If all layouts are going to the same place anyway, I don't see the harm. Jeff
... View more
02-10-2021
10:42 AM
|
0
|
0
|
7718
|
|
IDEA
|
Thank you for your idea. This has come up before and it is something we are investigating. An interim solution was we changed the export dialog so you have easy, single-click access to the project folder in the browse dialog. Would you be satisfied with project level path or would you want each layout to remember its saves output path? Other settings? For example, one layout your always save to PDF, another layout TIF, etc. Jeff - Layout and arcpy.mp teams
... View more
02-02-2021
10:58 AM
|
0
|
0
|
7748
|
|
IDEA
|
Thank you Chris. This is something we will consider for near term. Jeff - Layout and arcpy.mp teams
... View more
01-25-2021
09:59 AM
|
0
|
0
|
4973
|
|
IDEA
|
@jcarlson please keep me in the loop. We have future plans to create a Map Book tool (vs map series). map books could include the contents of a map series PLUS all the other components that go into making a final map book project, like title pages, TOCs, index pages, etc. Currently arcpy.mp is the only solution for what I'm calling a map book. Some advanced solutions are possible. Working with your scenario can help us drive requirements. Jeff
... View more
01-13-2021
01:39 PM
|
0
|
0
|
17106
|
|
IDEA
|
Thomas, Concerning ArcMap equivalency, did you know you could also tile to PDF in Pro? Did you try the following? I'm still interested in your non-spatial data. Again, feel free to email me. Jeff
... View more
01-13-2021
01:03 PM
|
0
|
0
|
24779
|
| 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
|