arcpy缩放至所选要素

n# encoding: utf-8n#获取地图文档中的图层列表n#mxd可引用网络驱动器上的文档nimport arcpynfrom arcpy import mappingnmxdpath=r”C:\Users\h\Desktop\fp.mxd”nmxd=arcpy.mapping.MapDocument(mxdpath)nmxd.activeDataFrame.zoomToSelectedF