Pro Add-in activate/deactivate customization

1012
2
10-21-2019 07:40 PM
JaewonYang
New Contributor III

Hi,

I am working on a project with two main add-in modules, that contain many tools and buttons. One module is Excavation and the other is tunnelling. I want to activate and deactivate the add-in tools based on the module selection. for example if I select tunnel module then excavation module add-in tools should be deactivated and vice versa.

If someone can guide me about how to execute this customization, it would be very helpful. Thank in advance.

0 Kudos
2 Replies
GKmieliauskas
Esri Regular Contributor

Hi Jaewon,

In the ribbon toolbar where your tools located you can add combobox control with 2 records: Excavation and Tunnelling. On selection changed of combobox you can change state of tools (enable/disable). Enabling/disabling you can manage with button or tool condition parameter defined in config.daml and

FrameworkApplication.State.Activate method. To get sample check ArcGIS Pro SDk samples for FrameworkApplication.State.Activate method.

0 Kudos
JaewonYang
New Contributor III

Thanks for the help.

I will look into it and if any problem occurs, I will ask here.

Thanks again.

0 Kudos