How to change selection color for a feature layer

2199
3
Jump to solution
12-01-2014 04:46 AM
AndreaV
New Contributor III

Hi, is there any way to change selection color for a feature layer in Python without setting this using a lyr?

Thank's in advance.

Andrea

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
curtvprice
MVP Esteemed Contributor

You could do a workaround by setting the selection symbol, saving to a .lyr file, and loading the layer and setting the source using arcpy.mapping. This is really the only way to mess with things not exposed as arcpy.mapping object methods.

View solution in original post

0 Kudos
3 Replies
XanderBakker
Esri Esteemed Contributor

I don't see the selection symbol being exposed in the arcpy.mapping.Layer object. so I guess the answer is No.

0 Kudos
curtvprice
MVP Esteemed Contributor

You could do a workaround by setting the selection symbol, saving to a .lyr file, and loading the layer and setting the source using arcpy.mapping. This is really the only way to mess with things not exposed as arcpy.mapping object methods.

0 Kudos
AndreaV
New Contributor III

Ok, so I have no chance to set directly. Thank you for the workaround.

0 Kudos