I'm trying to use the Python API via a notebook in ArcGIS Pro 2.5.0 to create offline map areas. I could do this in the web map directly by drawing in the polygons manually in the manage areas tab however I have around 30 to do and want a way to automate the process to allow for future updates. I've been following these instructions
However I'm getting the following error:
I've tried using a bookmark , polygon coordinates and extent. I've also tried using lat longs and projected web mercator aux sphere coordinates. They all result in the same error as above name 'Envelope' is not defined.
This issue seems very similar to the following threads that haven't been answered:
Below is screen dump of note book.
Is this a known bug or am I missing something fundamental here ?
Any help appreciated.