【ArcPy】 将要素类添加到当前工作窗口(内容列表)
mxd = mapping.MapDocument("CURRENT")
df = mapping.ListDataFrames(mxd)[0]
layer = mapping.Layer(outFcPath)
mapping.AddLayer(df, layer, 'Top')
arcpy.AddMessage('...work done.')
mxd = mapping.MapDocument("CURRENT")
df = mapping.ListDataFrames(mxd)[0]
layer = mapping.Layer(outFcPath)
mapping.AddLayer(df, layer, 'Top')
arcpy.AddMessage('...work done.')