Select to view content in your preferred language

Choosing parameter data type for custom tool box (.tbx)

455
2
05-09-2022 02:25 PM
ZhexinYin
Emerging Contributor

So I'm trying to develop a custom tool using python script. The tool works similar to enrich tool but it adds administrative division information like country, county, zip code, etc based on point coordinates. I was browsing the list of parameter data type and don't know which one fits my purpose. So like enrich tool it has a "variable" input for user to select what kind of data to enrich, I want to be able to provide a list of variables including country, state, zip code, etc. for user to choose from. But I don't know which parameter data type can achieve such effect. Anyone have any idea? Thanks.

ZhexinYin_1-1652131410748.png

ZhexinYin_0-1652131228733.png

 

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

If they were a common type, like a table, field etc, then you would specify that.

If they could be "anything", then you can specify "any value" and handle what is selected by checking the input type in your code.


... sort of retired...
0 Kudos
ZhexinYin
Emerging Contributor

So for this parameter, user do not need to input anything, they need to select the type of information they want this tool to generate. So I need a parameter data type which allows me to set a custom list of options (state, county, zip code) for users to choose from. I hope this explains my question more clearly.

0 Kudos