I am using ArcGIS Pro 2.7.2
I am not an experienced python programmer. My goal is that the user can select a various number of layers in the python tool and specify different buffer distances for each. I imagine it visually so that there are two columns:
Column A: Upload layer
Column B: Individual buffer distance in m
This process can be carried out until the user has specified all layers. This is important as it is currently not known how many layers are needed. Already thought about python dictionary but I do not know if this works for this case.
Finally, the buffered layers have to be loaded into a GDB.
import arcpy
from arcpy import env
env.workspace = "file_path"
env.overwriteOutput = True
fcs = arcpy.ListFeatureClasses()
bufdist = arcpy.ListFeatureClasses()
for fc in fcs:
arcpy.Buffer_analysis(fc, OutputName, bufdist,"FULL", "ROUND", "LIST", "Distance")