saving layer in the table of contents as map document(mxd)

Discussion created by balparmak on Feb 10, 2012
Latest reply on Feb 10, 2012 by clockwise

I want to save all my layers in the table of content as a map document(mxd). the below code seems like running but returning nothing. can any one help me with this? what do i need to do?

any help will appriciated?


import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
for lyr in arcpy.mapping.ListLayers(mxd):
    mxd.saveACopy( + ".mxd")