First I'm sorry about my English level and maybe the wrong place to post my subject (I've looked about the good place but didn't find it)
I created a map serie witch find its index on a layer. On thit serie I put an index grid witch will be the base of an second maps serie (Some people told me that's not possible but it works good). I created a spatial joint on this grid and a page request on it because I want to keep the index for ma second serie.
The problem is, I can't center my mini map on the index of first serie, so I would like to retrieve the currents limits of the first serie and put it as limits of second mini map by python.
I tried by camera and the cartographic window but the geography returned is not in the good system (I'm workin with 'Lambert 2008', not with decimal degrees).
I'm not sure to find the information by the way used with the code at the end of post.
Somebody can help me ton fond the good way ?
Thank you 🙂
import arcpy
# ---------------------
# Liste des constantes
# ---------------------
layout_name = "PARIS2733_Atlas masses d'eau (page de garde)"
# -------------------------
# Accéder au projet actuel
# -------------------------
projet = arcpy.mp.ArcGISProject("CURRENT") #'print(projet)' renvoie l'adresse de stockage
# ---------------------------------------------------
# Récupération du layout de la première mise en page
# ---------------------------------------------------
layout = projet.listLayouts(layout_name)[0] # Le [0] est obligatoire même si n'y a qu'une ligne, sans ce paramètre on récupère une liste et non un layout
index_layer = layout.mapSeries.indexLayer
#field_names = [field.name for field in arcpy.ListFields(index_layer)]
I think there's been a miscommunication.
For my solution, the index feature of the map series is not the grid used in your minimap. Keep the same index that you were using and unlink the two map frames.
Thanks for your time, I'll try to make something works with the exemple on this topic. Just afraid about the links between my two serie which could be a source of errors.
I've finaly maybe undestoud what you tried to explain... Use two different index is certainly not a good way. I'll check to apply your method on that second part of the project.