Hello ESRI community, I'm a python developer who's new to ArcGIS Pro and trying to get started on developing a tool. I read through a bunch of documentation and resources but still struggling to sketch out an architecture for what I'm trying to achieve and I'm hoping a veteran can point me in the right direction!
Here's the outline of what I'm trying to build, and I'm happy to provide more detail or context as required:
- For 1 or more variables, take as user input a series of thresholds that define categories. For instance, it might look like this:
rules=[
{'min_val':0, 'max_val':10, 'cat':'Low'},
{'min_val':10, 'max_val':25, 'cat':'Medium'},
{'min_val':25, 'max_val':100, 'cat':'High'}
]where the min_val and max_val determine a category (values between 0 and 10 are 'Low' etc)
- This would be displayed to the user with default values that they can modify.
- The user would select a variable from a list of options, modify the values, and then select a different variable and modify that one as well.
- When they're done changing thresholds, I would run some processing using the thresholds.
- Here's the tricky part: after running the tool, I want them to be able to pull up the tool again with the previously selected thresholds as the defaults.
I see how to set default values in a python Toolbox, but I'm wondering how (and whether) it's possible to dynamically set defaults based on previous runs.
Thanks to anyone who can provide pointers!