def odmatrix(para1, ...): arcpy.MakeFeatureLayer_management (inOrgins, para1) ....
... odmatrix("Pas_Lyr1999", ...) odmatrix("Pas_Lyr2000", ...) ...
listlyr ("Pas_Lyr1999", "Pas_Lyr2000",...) for i in listlyr: odmatrix (i,...)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.