I am able to show the other esriArcMapUI selection tools in my custom toolbar, but "Select By Rectangle" does not appear. What is the correct Tool refID of it?

<ESRI.Configuration xmlns="http://schemas.esri.com/Desktop/AddIns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    
  <Description>Test custom toolbar.</Description>
    <Target name="Desktop" version="10.1" />
  <AddIn language="CLR" library="SelectionSample.dll" namespace="SelectionSample">
        <ToolPalette id="ESRI_SelectionSample_ToolPalette" caption="Selection Palette" isMenuStyle="false" category="Framework AddIn Samples" >
            <Tool refID="esriArcMapUI.SelectByRectangleTool" />  
            <Tool refID="esriArcMapUI.SelectByPolygonTool" />
            <Tool refID="esriArcMapUI.SelectByLassoTool" />
            <Tool refID="esriArcMapUI.SelectByCircleTool" />                


I can't find a way to directly link to it, but if you go here and search by Select by Rectangle, you'll see the ProgID: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/0001/00010000029s000000.htm

  • Thanks! That was it. I spend hours looking at the esriArcMapUI API with no success. I follow the naming convention of the rest of the selecting tools. I was wrongly looking for "SelectBy...Tool". I guess because this is the default tool it is called just SelectFeaturesTool, instead of SelectByRectangleTool – mitaka Jun 19 '13 at 14:51

according to the help,here is your answer

according to the help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.