AnsweredAssumed Answered

Auto populate script tool parameter with layers in a map document

Question asked by gisp on Oct 3, 2013
Latest reply on Oct 4, 2013 by gisp
Does any one know how to auto populate a script tool parameter with list of layers in a map document when the map document is provided as the first parameter.

This functionality is common when opening arctoolbox tools within a map document. The input dataset parameters automatically pick up the layers and tables in the table of contents.

I know that tool validation can be used to get the list of fields in a feature class. I did not have luck applying the same logic for list of layers in an mxd.

Thanks for your help!