I have a toolbox python script that still works in ArcMap - I am trying to updated to work in ArcPro
the script takes input parameters for
1 Site Boundary
2 Layers on Site (multiple layers)
3 Layers within distance of Site (multiple layers)
and writes to a text file summarizing layers and their visible fields that fall within or within distance of Site Boundary Feature.
where it seems to be not working in ArcPro is when it selects lyrs in the map from the input parameters. the script is completing without error messages because it is not recognizing any layers in the map that are in GetParameter inputs...
WithinLyrs = arcpy.GetParameter(1)
NearbyLyrs = arcpy.GetParameter(2)
dataF = aprx.activeMap
layers = dataF.listLayers()
lyrNum=0
for lyr in layers:
>if lyr.isFeatureLayer==1
>>if lyr in WithinLyrs or NearbyLyrs:
how is this handled differently in Pro vs Map?