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")
What is the full code for that toolbox? Could you share it?