Select layer in TOC, activate dll or an add-in with Python

Discussion created by Kristya on Apr 29, 2011
Latest reply on Apr 29, 2011 by Dan_Patterson

I'm looking for a piece of python code that will select (highlight) a layer in my map's table of contents (TOC).

I need this for the next step that I am yet to figure out:

adding Python code to activate dll or an add-in that requires a layer in TOC be selected.  The add-in has also been added as a button to the map. Is it possible to make Python "press the button"?

Thank you :)