What the input for GPLine datatypes look like

79
0
07-11-2019 08:21 AM
EthanHarvey1
New Contributor

Hi,

I'm writing a small script that takes a GPLine type as the input parameter for a tool, which is then converted into a polyline later on. The description for the datatype is "A shape, straight or curved, defined by a connected series of unique x,y-coordinate pairs" but I am unsure what this should look like.

Would anyone be able to provide an example of what the input for this parameter type should look like?


paramClickLine = arcpy.Parameter

   (
   displayName="Click Line",
   name="clickLine",
   datatype="GPLine",
   parameterType="Required",
   direction="Input"

   )

I've attached the parameter above, with it's datatype. Apologies if this is the incorrect formatting of code in posts, as it is my first time posting here.

Kind regards,

Ethan

0 Kudos
0 Replies