Select to view content in your preferred language

ArcGIS Pro: Add a ribbon button tied to a customized python script

729
1
06-15-2022 11:18 AM
YinghongLi1
Frequent Contributor

I created a python script as a script tool.  I want to tie this script to a ribbon button.  However the Project | Option | Customized Ribbon does not display my own toolbox.

Can I tie my script to a ribbon button?  Thanks

Software:  ArcGIS Pro 2.9

 

0 Kudos
1 Reply
GKmieliauskas
Esri Regular Contributor

Hi,

Yes, you can do it by ArcGIS Pro SDK for .NET. Sample is here:

https://community.esri.com/t5/arcgis-pro-sdk-questions/call-python-script-from-c-button-in-pro-add-i...