1

In the layer properties of each layer there is an option "Show MapTips using the display expression" that is by default disabled and I would like to find out if there is a way to enable this option by default for all layers or by using arcpy.

I have tried to run arcpy.UpdateLayer but that would update either only the symbology properties or every layer property.

Layer Properties

asked Oct 15, 2014 at 8:16

1 Answer 1

0

Whenever I have seen this option grayed out it is because the shapefile (or feature class) does not have a spatial index.

To address this from a script I would use the Add Spatial Index (Data Management) tool.

To do it on every shapefile (feature class) I would use arcpy.da.Walk to visit every workspace and run the tool on any shapefiles (feature classes) found.

If your question is about checking/unchecking the option then this GeoNet thread suggests that the only way to do that is via ArcObjects.

answered Oct 15, 2014 at 8:48

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.