<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: convert user input script to Python tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/unreadable-title/m-p/1087535#M62002</link>
    <description>&lt;P&gt;So when you set up the script tool, you can set values to have multiple values rather than creating individual parameters for each point. In which case the end user can add as many points as needed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="another example.JPG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20545i36B5F61587501E4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="another example.JPG" alt="another example.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When in comes to the geometry, you have to identify the kind of geometry for the script to search for. So for instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

# Create a Describe object from the feature class
#
desc = arcpy.Describe("C:/data/arch.dgn/Point")

# Print some feature class properties
#
print("Feature Type:  " + desc.featureType)
print("Shape Type :   " + desc.shapeType)
print("Spatial Index: " + str(desc.hasSpatialIndex))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the shapeType will tell you what kind of geometry the shape is. Also, as a side note, if you are looking to get X and Y values from the coordinates for/from a shape then it is best to use the separate &lt;A title="X and Y shape tokens." href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/reading-geometries.htm" target="_blank" rel="noopener"&gt;X and Y shape tokens.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is some additional information on how to &lt;A title="write geometries" href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/writing-geometries.htm" target="_blank" rel="noopener"&gt;write geometries&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Aug 2021 16:27:45 GMT</pubDate>
    <dc:creator>RPGIS</dc:creator>
    <dc:date>2021-08-10T16:27:45Z</dc:date>
    <item>
      <title>­</title>
      <link>https://community.esri.com/t5/python-questions/unreadable-title/m-p/1087460#M62000</link>
      <description />
      <pubDate>Sun, 02 Jul 2023 12:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unreadable-title/m-p/1087460#M62000</guid>
      <dc:creator>MoSaket</dc:creator>
      <dc:date>2023-07-02T12:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: convert user input script to Python tool</title>
      <link>https://community.esri.com/t5/python-questions/unreadable-title/m-p/1087535#M62002</link>
      <description>&lt;P&gt;So when you set up the script tool, you can set values to have multiple values rather than creating individual parameters for each point. In which case the end user can add as many points as needed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="another example.JPG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20545i36B5F61587501E4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="another example.JPG" alt="another example.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When in comes to the geometry, you have to identify the kind of geometry for the script to search for. So for instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

# Create a Describe object from the feature class
#
desc = arcpy.Describe("C:/data/arch.dgn/Point")

# Print some feature class properties
#
print("Feature Type:  " + desc.featureType)
print("Shape Type :   " + desc.shapeType)
print("Spatial Index: " + str(desc.hasSpatialIndex))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the shapeType will tell you what kind of geometry the shape is. Also, as a side note, if you are looking to get X and Y values from the coordinates for/from a shape then it is best to use the separate &lt;A title="X and Y shape tokens." href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/reading-geometries.htm" target="_blank" rel="noopener"&gt;X and Y shape tokens.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is some additional information on how to &lt;A title="write geometries" href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/writing-geometries.htm" target="_blank" rel="noopener"&gt;write geometries&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 16:27:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unreadable-title/m-p/1087535#M62002</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2021-08-10T16:27:45Z</dc:date>
    </item>
  </channel>
</rss>

