Solved! Go to Solution.
The thing I really need to know before I spend too much time on this, is if it is possible to create this tool in python or if I need to find another way. (again) Is it possible to use coded domains limit what the users can enter in Python? Thanks.
The thing I really need to know before I spend too much time on this, is if it is possible to create this tool in python or if I need to find another way. (again) Is it possible to use coded domains limit what the users can enter in Python? Thanks.
Yes.
If you set this up as a tool, this is very straightforward. You can write validation code can detect the domains attached to a field (it's property of a field), go look at the domains, and assign them to a filter input. No problem there. (For simplicity, you could just hardcode the domains if they are static.
See the section in the help Programming a Tool Validator Class.
Doing this as a geoprocessing tool is much easier as you let the tool validation (which all users are already familiar with) do your interface - no need to futz with Tkinter etc.
Note if you do this, it's a good idea to have a check in your code that only a couple parcels are selected so you don't accidentally wipe the database. You can either do this in validation code (preferred) or in the main tool code as an error.