In the Code Sample from the ArcGIS Pro help for the ArcPy class named Geometry there is something that catches my attention:
# Run the Copy Features tool, setting the output to the geometry object. # geometries is returned as a list of geometry objects. geometries = arcpy.CopyFeatures_management("c:/data/streets.shp", arcpy.Geometry())
Here the Result object (
geometries) returned by running arcpy.CopyFeatures_management() is a list of Geometry objects, which is very useful for subsequent processing in that sample code.
However, other than by coming across this sample code, is there any way that I could have learned what that Result object would be?
I have reviewed what I think are the two most obvious places to look in the ArcGIS Pro help:
I think it may be hinted at in the Result documentation where it says that the Return Value is:
The output, either as a recordset or a string.
If the output of the tool, such as MakeFeatureLayer is a layer, getOutput will return a Layer object.
Result outputs can also be accessed by index, so result.getOutput(0) and result are equivalent.
but I was/am hoping to gain a clearer understanding.