Question: Write a script that creates an inventory of what is present in a user defined . aprx file. You can hardcode the full path of
Write a script that creates an inventory of what is present in a user defined aprx file. You can hardcode the full
path of the aprx file at the top of the script.
The inventory should consist of the following: the full path of the aprx file; the number of maps and layouts;
for each map, the name of the map, the number of layers, whether a basemap is one of the layers or not, and
the coordinate system of the map; and for each layout, the name of the layout, the number of map frames, the
number of text elements and the number of other layout elements.
The inventory should be written as a text file. The text file should look similar to the following. Exact wording and
formatting may vary provided it contains these elements in an organized form:
Full path of ArcGIS Pro project: C:DemoTestaprx
This project contains maps and layout
Map : Overview
Number of layers:
Contains basemap: yes
Coordinate system: WGS
Map : Region
Number of layers:
Contains basemap: no
Coordinate system: NAD UTM Zone N
Layout : Project
Number of map frames:
Number of text elements:
Number of other elements:
No testing data is provided. You can use one of the aprx files provided earlier in the course or use one of your
own. The script should work on any aprx file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
