We have different AddIn visual studio projects with their own AddIn tools. However some of these can be grouped into common groups on the ArcPro AddIn ribbon menu.
Is it possible to publish tthe AddIn's to the same groups from different VS projects?
Solved! Go to Solution.
Yes.
The GUID of your add-in will control the ‘order’ the tools are added to the toolbar. For example, project with GUID {8e190f33-95f2-4249-ae7d-bcfa45a44e72} will be Loaded before project {e1f4eeee-e695-4fab-b358-1f0fd8006c0b}. Your DAML would look something like this:
<modules>
<insertModule id="MapAnSRLocation_Module" className="MapAnSRLocationTool" autoLoad="false" caption="MapAnSRLocationTool">
<!-- uncomment to have the control hosted on a separate tab-->
<tabs>
<!--<tab id="MapAnSRLocation_Tab1" caption="New Tab">
<group refID="MapAnSRLocation_Group1"/>
</tab>-->
</tabs>
<groups>
<!-- comment this out if you have no controls on the Addin tab to avoid
an empty group-->
<group id="GISWorkbenchPro_Group3" caption="Add-In Tools" appearsOnAddInTab="false" keytip="Tool">
<!-- host controls within groups -->
<tool refID="MapAnSRLocationTool_BasicMapTool" size="large" />
<button refID="MapAnSRLocation_Button1" size="large" />
</group>
</groups>
<controls>
<!-- add your controls here -->
<button id="MapAnSRLocation_Button1" caption="Map an SR" className="MapAnSRLocation" loadOnClick="true" smallImage="Images\FindRouteLocation16.png" largeImage="Images\FindRouteLocation32.png" condition="esri_mapping_mapPane" keytip="T2">
<tooltip heading="Map an SR">Find State Route Location<disabledText /></tooltip>
</button>
</controls>
</insertModule>
<!-- This adds the custom tool to an existing Tab and places it 'after' the tools already on the tab -->
<updateModule refID="GISWorkbenchPro_Module">
<tabs>
<updateTab refID="GISWorkbenchPro_WSDOT_Tab">
<insertGroup refID="GISWorkbenchPro_Group3" insert="after"></insertGroup>
</updateTab>
</tabs>
</updateModule>
</modules>
Additional reference: example of config.daml for app1 and app2.
https://community.esri.com/t5/arcgis-pro-sdk-questions/daml-adding-tool-to-existing-ribbon/td-p/8417...
Also: https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Advanced-Topics#control-order-of-add-in-load... was needed.
Yes, this is possible. Check out this section in the wiki: Control order of add-in loading using DAML
Yes.
The GUID of your add-in will control the ‘order’ the tools are added to the toolbar. For example, project with GUID {8e190f33-95f2-4249-ae7d-bcfa45a44e72} will be Loaded before project {e1f4eeee-e695-4fab-b358-1f0fd8006c0b}. Your DAML would look something like this:
<modules>
<insertModule id="MapAnSRLocation_Module" className="MapAnSRLocationTool" autoLoad="false" caption="MapAnSRLocationTool">
<!-- uncomment to have the control hosted on a separate tab-->
<tabs>
<!--<tab id="MapAnSRLocation_Tab1" caption="New Tab">
<group refID="MapAnSRLocation_Group1"/>
</tab>-->
</tabs>
<groups>
<!-- comment this out if you have no controls on the Addin tab to avoid
an empty group-->
<group id="GISWorkbenchPro_Group3" caption="Add-In Tools" appearsOnAddInTab="false" keytip="Tool">
<!-- host controls within groups -->
<tool refID="MapAnSRLocationTool_BasicMapTool" size="large" />
<button refID="MapAnSRLocation_Button1" size="large" />
</group>
</groups>
<controls>
<!-- add your controls here -->
<button id="MapAnSRLocation_Button1" caption="Map an SR" className="MapAnSRLocation" loadOnClick="true" smallImage="Images\FindRouteLocation16.png" largeImage="Images\FindRouteLocation32.png" condition="esri_mapping_mapPane" keytip="T2">
<tooltip heading="Map an SR">Find State Route Location<disabledText /></tooltip>
</button>
</controls>
</insertModule>
<!-- This adds the custom tool to an existing Tab and places it 'after' the tools already on the tab -->
<updateModule refID="GISWorkbenchPro_Module">
<tabs>
<updateTab refID="GISWorkbenchPro_WSDOT_Tab">
<insertGroup refID="GISWorkbenchPro_Group3" insert="after"></insertGroup>
</updateTab>
</tabs>
</updateModule>
</modules>
Additional reference: example of config.daml for app1 and app2.
https://community.esri.com/t5/arcgis-pro-sdk-questions/daml-adding-tool-to-existing-ribbon/td-p/8417...
Also: https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Advanced-Topics#control-order-of-add-in-load... was needed.