I have 2 Maps (tabs) in an active (loaded) project in the AcrGIS Pro SW.
Map1 is the active map. I am running a script via the python console that intersect 2 layers (lyr1 and lyr2) that are in Map2 and output a new layer (lyr3);
The output of that intersect operation is added to the active Map (Map1) but I want it to be added to where the 2 layers that are being intersect are (i.e. Map2);
- I know that I can manually switch the active map by selecting it with the mouse prior to running my script. Don't want to do it this way....
- Is there a python method to force that switch? I tried using openView() but this is not the solution I am looking for as this opens another view of Map2 that already exists.
* this same question was asked in this forum last May but was not answered.
Thanks in advance.