I am attempting to zoom to layer on the map view NOT the layout view. I am aware that I can zoom to a layer using the code below
cam = c_project.activeView.camera
ext = arcpy.Describe(layer).extent
cam.setExtent(ext)
My issue is that c_project.activeView returns None because the project is not yet open.