1

I've created a custom toolbar using the pythonaddins module. For ease of use I'd like to add the Select Features tool to the toolbar.

enter image description here

The tool becomes grayed out as soon as I close the Customize window however.

enter image description here

Note that the Select Features tool on the Tools toolbar works fine.

enter image description here

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Jul 27, 2017 at 23:15
2
  • Are no layers set to selectable? gis.stackexchange.com/questions/12927/… are you sure your active active data frame has selectable layers? Is the spatial reference set? In previous versions the selection was disabled if the spatial reference of the dataframe was set to unknown. Commented Jul 27, 2017 at 23:17
  • @MichaelStimson That's not it. The Select Features tool on the Tools toolbar works fine. Commented Jul 27, 2017 at 23:18

1 Answer 1

3

Your problem is that you are adding an item that is not the same as the Select Features on the Tools toolbar. The Select Features from the Data View Context Menu is the tool that one can start once right-clicking in the data view.

What you are looking for is tools under Selection category:

enter image description here

Unfortunately, you won't be able to have the same drop-down menu of the tools to pick from (by lasso, polygon, line etc) because this is done by some custom ArcMap UI code that is not exposed through Customize menu.

The closest you can get is either to have just Select By Rectangle (which is the default for built-in Select Features group tool) or to add multiple selection types to the toolbar:

enter image description here

answered Jul 28, 2017 at 4:10

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.