I've found this docu: https://www.esri.com/content/dam/esrisites/en-us/events/conferences/2020/federal-gis/arcgis-pro-sdk-... and tried to adapt it, so that my custom button which opens my dockpane not only appears in a separate add-in tab, but also in the Ribbon under Insert >> Project. I copied the corresponding command ids. But it's not working. any ideas why? do i need special options?
<modules>
<insertModule id="My_Module" className="Module1" autoLoad="true" caption="Module1">
<tabs>
<tab id="My_Tab1" caption="MyTab" keytip="D">
<group refID="My_Group1"/>
</tab>
</tabs>
<groups>
<group id="My_Group1" caption="MyGroup" appearsOnAddInTab="false" keytip="MyGroup">
<button refID="My_Dockpane1_ShowButton" size="large"/>
</group>
</groups>
<controls>
<button id="My_Dockpane1_ShowButton" caption="My Button" keytip="My Button" className="Dockpane1_ShowButton" loadOnClick="true" smallImage="pack://application:,,,/xy;component/Images/icon_small.png" largeImage="pack://application:,,,/xy;component/Images/icon_large.png">
<tooltip heading="Show">
Show<disabledText />
</tooltip>
</button>
</controls>
<dockPanes>
<dockPane id="My_Dockpane1" caption="My Dockpane" className="Dockpane1ViewModel" dock="group" dockWith="esri_core_projectDockPane" isDropTarget="false">
<content className="Dockpane1View" />
</dockPane>
</dockPanes>
</insertModule>
<updateModule refID="esri_core_insertTab">
<groups>
<updateGroup refID="esri_core_projectData">
<insertButton refID="My_Dockpane1_ShowButton"/>
</updateGroup>
</groups>
</updateModule>
</modules>
Solved! Go to Solution.
Pro "module" to update is "esri_core_module" This is the module that creates the "Insert" tab on the Ribbon with the "Project" group.
So in your DAML (line 27), use this:
<updateModule refID="esri_core_module">
instead of <updateModule refID="esri_core_insertTab">
Pro "module" to update is "esri_core_module" This is the module that creates the "Insert" tab on the Ribbon with the "Project" group.
So in your DAML (line 27), use this:
<updateModule refID="esri_core_module">
instead of <updateModule refID="esri_core_insertTab">
Thank you, it worked 😄