I am using ArcGIS 10.8 and PyCharm. I need something very simple apparently, but I can't do it. I want to add an existing shapefile to my ArcMap project using Python from PyCharm. With my project open in ArcMap, I go to PyCharm and I have tried:
import arcpy fc = "D:/Shapefiles/regiones.shp" mxd = arcpy.mapping.MapDocument("D:/proyectos/aftines.mxd") arcpy.MakeFeatureLayer_management(fc, "regiones") arcpy.RefreshActiveView() arcpy.RefreshTOC()
and I get nothing...
I have looked for the solution on the internet and I have not found it.