I am making a Configuration Add-in to remove ribbons and other tools and provide only the tools needed by the user. All the add-in interaction is done with buttons and controls on a dock pane. The user will have to use the selection tool to select parcels to create project boundary polygons.
I know I could make buttons to select/clear and put them on my dock pane but since I'm in a configuration project I'd figure I could leave the Select and Clear buttons on the ribbon. In the configure database in the override OnUpdateDatabase, I remove everything but my Add-in group. Then, in the DAML, I add the esri_editing_selectionGroup group in the <tabs> area. This works and shows just the Selection group in the ribbon (ribbon.png). I don't want the Attributes button to show. Is there anyway I can remove the attribute button?
I thought, perhaps I could just add those 2 buttons to my add-in group. I tried just adding the selection tool but that is not working. See DAML below. I tried "refID" like what worked for the group and just the "id" like my button and neither worked.
Finally, i could forget about all this and tell the user to use the right-click context menu on the map to clear and select. But I would like to know this for future efforts.
<modules>
<insertModule id="PamConfig_Module" className="Module1" autoLoad="false" caption="Module1">
<!-- uncomment to have the control hosted on a separate tab-->
<tabs>
<tab id="PamConfig_Tab1" caption="PAM">
<group refID="PamConfig_Group1" />
<group refID="esri_editing_selectionGroup" />
</tab>
</tabs>
<groups>
<group id="PamConfig_Group1" caption="Connect..." appearsOnAddInTab="false">
<button refID="PamConfig_PAMDP_ShowButton" size="large" />
</group>
</groups>
<controls>
<!-- add your controls here -->
<button id="PamConfig_PAMDP_ShowButton" caption="Show PAMDP" className="PAMDP_ShowButton" loadOnClick="true" smallImage="Images/PAMPRO16.png" largeImage="Images/PAMPRO32.png">
<tooltip heading="Show Dockpane">Show Dockpane<disabledText /></tooltip>
</button>
<!--<button refID="esri_mapping_SelectByRectangeleTool"/>-->
</controls>
<dockPanes>
<dockPane id="PamConfig_PAMDP" caption="PAMDP2.5" className="PAMDPViewModel" dock="group" dockWith="esri_core_projectDockPane">
<content className="PAMDPView" />
</dockPane>
</dockPanes>
</insertModule>
</modules>