I've a list of layers of the current workspace in a combobox, but I want to list only the layers of the ArcSDE Connection, not the others I've in the TOC. How can I filter the name of this layers?
Thanks Blah238! I found the solution in the exemple 3 you have mentioned.
for layer in layers: if layer.supports("SERVICEPROPERTIES"): if layer.serviceProperties["ServiceType"] == "SDE": layer_list = self.items.append(layer.name)