List all layers in an arcmap session

Discussion created by ubanide on Jan 24, 2012
Latest reply on Jan 25, 2012 by ubanide
I would like to fill a listbox  with all of the FCs in a working Arcmap session.

I and do a list from a GDB like

env.workspace = "d:/foo/DefWrkCpc/Mystuff.gdb"

fc_list = arcpy.ListFeatureClasses()

for item in fc_list:

I can't seem to get

mxd = arcpy.mapping.MapDocument("CURRENT")

nlaylst = arcpy.mapping.ListLayers(mxd)

nfc_list = []
for layer in nlaylst:
     nfc_list += arcpy.ListFeatureClasses(layer)

To work  any ideas?