Hello,
I am trying to add to a custom group to another custom group. I have only been successful adding a button to the existing custom group (tab). There a way to add a group to another group or do I have to add each button separately?
Solved! Go to Solution.
Hi,
First step is to manage modules dependencies. You need to add dependency to module where group (tab) exists. For ArcGIS Pro module it could look like that:
<dependencies>
<dependency name="ADMapping.daml" />
</dependencies>
For custom module:
<dependencies>
<!-- id of "Add-in B" same as AddInInfo id="{00000000-0000-0000-0000-000000000000}"-->
<dependency name="{00000000-0000-0000-0000-000000000000}" />
</dependencies>
It will manage module loading order. At the time you want to insert button group/tab will be already created.
Second step is updating group/tab.
<updateModule refID="esri_mapping">
<groups>
<updateGroup refID="esri_mapping_navigateGroup">
<insertButton refID="New_Menu_Item_Button" />
</updateGroup>
</groups>
</updateModule>
More info here
Hi,
First step is to manage modules dependencies. You need to add dependency to module where group (tab) exists. For ArcGIS Pro module it could look like that:
<dependencies>
<dependency name="ADMapping.daml" />
</dependencies>
For custom module:
<dependencies>
<!-- id of "Add-in B" same as AddInInfo id="{00000000-0000-0000-0000-000000000000}"-->
<dependency name="{00000000-0000-0000-0000-000000000000}" />
</dependencies>
It will manage module loading order. At the time you want to insert button group/tab will be already created.
Second step is updating group/tab.
<updateModule refID="esri_mapping">
<groups>
<updateGroup refID="esri_mapping_navigateGroup">
<insertButton refID="New_Menu_Item_Button" />
</updateGroup>
</groups>
</updateModule>
More info here
This works! thank you. I revisit other posts as well on dependencies and used the GUID ID for the existing addin. Thanks for your reply