Zoom To and Take a Screen Grab

692
2
07-26-2021 06:28 AM
MPach
by
Occasional Contributor II

Does anyone have a script of know of someone that has one that Zooms to an area and takes a screen grab of it? I would imagine that someone has developed a short little script that does this which is why I am asking before I give it a shot. I wouldn't imagine there is a lot involved in creating it that might be challenging except for possibly waiting a few seconds after the area is zoomed to before taking the screen grab to allow for imagery to draw. 

Thanks

0 Kudos
2 Replies
EricAnderson_DHS
Occasional Contributor

In what application? ArcGIS Pro? Web map? 

MPach
by
Occasional Contributor II

It would be in ArcGIS Desktop. I think I figured it out. 

A 'zoom to' followed by a time.sleep(x number of seconds)

Then I'd use use 

pyautogui.screenshot()

 after installing PyAutoGUI. 

Fingers crossed it's that simple. 🤞

0 Kudos