how to use GPFeatureRecordSetLayer?

410
1
07-26-2023 06:00 PM
AzinSharaf
Occasional Contributor II

I've created a python toolbox in ArcGIS Pro and one of the tools uses GPFeatureRecordSetLayer. It creates an interactive mode so user can insert a point on a map.

The problem is when i insert a point the name of the tool will be chosen as layer name in Table of Content  (see screenshot below). How can i control that text value?

 

 

 

param1 = arcpy.Parameter(displayName="Pour Point",
                         name="lyrPourPoint",
                         datatype="GPFeatureRecordSetLayer",
                         parameterType="Required",
                         direction="Input")

param1.filter.list = ["Point"]
param1.symbology = os.path.join(rootFolder, "symbology", "PourPoint.lyrx")
param1.value = os.path.join(rootFolder, "symbology", "PourPoint.lyrx")

 

 

 

AzinSharaf_0-1690419467911.png

 

 

 

0 Kudos
1 Reply
by Anonymous User
Not applicable

What is the full code for that toolbox? Could you share it?

0 Kudos