Create new map

154
2
02-22-2021 02:32 AM
ToyotaT18
New Contributor

Hi all, is it possible to create a new map using arcpy?

My script creates a new raster layer I need to display in a new map.

I thought maybe something like: newmap = arcpy.cim.CreateCIMObjectFromClassName('CIMMap','V2'), this doesn't error but it also doesn't make a new map...

Thanks!

0 Kudos
2 Replies
jcarlson
MVP Regular Contributor

The short answer is no, or at least, not without some serious workarounds.

There's an open Idea that requests this shortcoming be addressed, so you might want to give it an upvote. It does look like one comment gives a working solution, but it's quite a lot just to get this to work.

- Josh Carlson
Kendall County GIS
0 Kudos
ChrisHolmes
Occasional Contributor III

The workaround I'm using for this for my use case is to create a project template in Pro. Then using arcpy I can extract the project template to a new location on the network as a "new project". It works for me, not sure if it would work for your use case.

0 Kudos