I'm creating a set of scripts with tens of input parameters. First 5 are paths to databases, network datasets etc. Next 3 specify what type of analysis should be calculated. So first 8 parameters are set and defined. Additionally parameters 8-40 (for now) are optional booleans which specify what region or district should be calculated.
The idea is, that the script reads definition in database, where it is specified what should happen for said region/district. Therefore user adds new optional parametr as boolean dynamically with the same name as specified in DB.
Is there a clean solution to iterate number of parameters, read their name and value and then run analysis based on what is preapred in DB?
I need not to do arcpy.GetParameterAsText(xyz), because that would force change of script. I also need to know the parameter name to find correct definition in DB.
Thank you for any ideas!
Martin