Select to view content in your preferred language

How to install addins to the same group from different projects

129
2
Jump to solution
Thursday
Gurunara
New Contributor III

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?

0 Kudos
1 Solution

Accepted Solutions
RichardDaniels
Regular Contributor

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>

 

View solution in original post

0 Kudos
2 Replies
UmaHarano
Esri Regular Contributor

Yes, this is possible. Check out this section in the wiki: Control order of add-in loading using DAML

 

 

0 Kudos
RichardDaniels
Regular Contributor

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>

 

0 Kudos