Zoom To and Take a Screen Grab

415
2
07-26-2021 06:28 AM
MPach
by
New Contributor III

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
EricA
by
New Contributor III

In what application? ArcGIS Pro? Web map? 

MPach
by
New Contributor III

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