I use ArcObject in python to develope a tool. I import comtypes in python to access the arcmap layers in python and use ifeaturelayer interface. I have to set featurelayer to phookhelper.focusmap.get_layer(i) to access the layers in ArcMap. The problem is that I can't find get_layer method in python. Is there any way to access the ArcMap layers in python using ArcObjects?
for (int i = 0; i < phookhelper.FocusMap.LayerCount; i++)
{
if (phookhelper.FocusMap.get_Layer(i).Name == comboBox1.Text)
{
pfeaturelayer = (IFeatureLayer)phookhelper.FocusMap.get_Layer(i);
pfc = pfeaturelayer.FeatureClass;