Select to view content in your preferred language

Change Layout Size and Resize Elements using Python/ArcPy

556
3
11-09-2023 02:49 PM
vincentnate
New Contributor

I am currently using ArcGis Pro 3.1 and in the Ribbon under the Layout section there is an option to change the Layout size while also resizing elements in the Layout. Is it possible to perform this same functionality from Python? I would like to be able to size the Layout to a specific size to fit polygons of varying size and have elements scale accordingly.

vincentnate_0-1699569688067.png

 

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

CIM access under

Python CIM access

There is a Layout class and all the related elements.  Not easy and not everything is open to access and/or change.


... sort of retired...
0 Kudos
vincentnate
New Contributor

Thanks Dan!

I was hoping it would not have to be done manually since that functionality already exists in the user interface. I will take a look at using the CIM definition as I already use it for a few things in the project. I appreciate your time.

0 Kudos
DanPatterson
MVP Esteemed Contributor

no problem


... sort of retired...
0 Kudos