Hello everyone,
I am importing mxd projects to aprx with a python script.
I need the imported map to appear in the content panel.
Right now it only appears in the Catalog panel. My script is the following:
current_dir = os.path.abspath(os.path.dirname(__file__))
arcpy.env.workspace = current_dir
mxds = arcpy.ListFiles("*.mxd")newAprx=i[:-4]+".aprx"
print("Convirtiendo " + i + " en " + newAprx)
tempProject= "temp.aprx" #blank template
x=os.path.join(current_dir, newAprx)
#--- Creating APRX ---
aprx=arcpy.mp.ArcGISProject(tempProject)
aprx.saveACopy(x)
aprx.importDocument(current_dir+"//"+i)
aprx.saveACopy(x)