Select to view content in your preferred language

Python Script Tool parameters to select features within the layers by users

131
0
10-04-2024 08:15 PM
Labels (2)
RachelBu2
New Contributor

I've defined my parameter as the code showed below in def getParameterInfo(self) function of the python script, but the user interface of the script tool doesn't allow users to select a feature to run. It would run all features of the feature layer. I wonder what settings/codes need to be added to show select feature Box as the picture below.

Your help is appreciated! 

v1 = arcpy.Parameter(
displayName="Golden Layer",
name="input_id1",
datatype="GPFeatureRecordSetLayer",
parameterType="Required",
direction="Input")

DougBrowning_0-1654723100058.png

 Ho

Tags (1)
0 Kudos
0 Replies