Hi,
I want to define a list of values for a Parameter as all the values for a particular field in a Feature Class.
How do I do that?
Hi Mitt,
I doubt you can define a parameter as values in a field. You can pass a shapefile and field as input parameter.
Refer this blog Create a list of unique field values | ArcPy Café , get a list of values in your script and loop through the values.
You should be able to use Tool Validation for this. Also, see here for a working example, employing an arcpy.da.SearchCursor.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und vieles mehr. Neu hier? Erstelle ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.