In ArcMap, add a "Record Macro" capability, that can then be exported to arcpy.

Idea created by SB_Miller on Jul 14, 2011
    Duplicate
    Score0

    This idea has been merged with Record macro option in ArcMap.

    I know there are two similar posts already, but my request really focuses recording interactive steps that build or manipulate mxd's, and then exporting the macro to arcpy.mapping code.  Geoprocessing is already well covered with ModelBuilder's export to script capability, and the abillity to export from the "results" of a geoprocess.  But recording a macro of an interactive mapping session would, I think, fill the last gap.