Select to view content in your preferred language

How to make a layout or a map active programmatically using arcpy ?

538
2
02-24-2023 11:25 PM
Labels (3)
NiharSahoo
New Contributor III

I have multiple layout and maps in my project, i want to activate each layout and do some processing like using definition queries on some layers, then create grid using those layer then finally print pdfs. Please advise ?

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

you need to explore the code snippets for the various objects and methods in the python section of the help.

For instance see the code examples in

Layout—ArcGIS Pro | Documentation


... sort of retired...
DuncanHornby
MVP Notable Contributor

Explore the help page that Dan points to and you will see openView().

 

0 Kudos