Select - Select Objects By Map Layer in Python?

Discussion created by feilong80 on Jan 2, 2013
Latest reply on Jan 7, 2013 by MBuehler-esristaff

I'd like to automate the following process in the GUI:

Select -> Select Objects By Map Layer -> Obstacle:obstacle

In my scene I have lots that are being generated over a river, despite the obstacle map being correctly applied (because certain roads that are going across the river, in the imported OSM data I'm using, cause CE to think that these are valid spots for lot creation). It's pretty easy in the GUI to select these lots and then set their shapeCreation attribute to off, but I'm trying to automate this process.

Seems like there should be a "setSelectionByMapLayer()" command :-)

Any advice?