<?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: create new point from centroid grid in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-new-point-from-centroid-grid/m-p/444737#M34846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, error shows up because You don't have licence for this tool (Advanced is needed). I think simplest workaround would be using data access search cursor with Shape@centroid and insert cursor to create points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Arek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2012 09:10:58 GMT</pubDate>
    <dc:creator>ArkadiuszMatoszka</dc:creator>
    <dc:date>2012-12-10T09:10:58Z</dc:date>
    <item>
      <title>create new point from centroid grid</title>
      <link>https://community.esri.com/t5/python-questions/create-new-point-from-centroid-grid/m-p/444736#M34845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been working on creating a point shapefile from the centroid of a polygon grid I created for mapbook purposes. I have a simple script that is coming back with this error:"Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Users\RLong\Documents\NewPoint.py", line 19, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeaturetoPoint_management("GridIndex", "SamplesLoc", "Centroid")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'module' object has no attribute 'FeaturetoPoint_management'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code so far:&lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;###Simple point shape file object for testing
###
###Import standard modules

import os, sys, math, arcpy, traceback, string, fileinput

###Setup your workspace or file you're going to use

from arcpy import env

arcpy.env.workspace = "C:/Users/RLong/GIS_Data/Conversions/GridIndex.shp"

###Setup Local variables
in_features = "GridIndex.shp"
point_location = "Centroid"
out_feature_class = "SamplesLoc"

###Create the points
arcpy.FeaturetoPoint_management("GridIndex", "SamplesLoc", "Centroid")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could this error be coming up cuz I don't have arcinfo?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Randy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 14:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-new-point-from-centroid-grid/m-p/444736#M34845</guid>
      <dc:creator>nimitz</dc:creator>
      <dc:date>2012-12-05T14:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: create new point from centroid grid</title>
      <link>https://community.esri.com/t5/python-questions/create-new-point-from-centroid-grid/m-p/444737#M34846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, error shows up because You don't have licence for this tool (Advanced is needed). I think simplest workaround would be using data access search cursor with Shape@centroid and insert cursor to create points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Arek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 09:10:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-new-point-from-centroid-grid/m-p/444737#M34846</guid>
      <dc:creator>ArkadiuszMatoszka</dc:creator>
      <dc:date>2012-12-10T09:10:58Z</dc:date>
    </item>
  </channel>
</rss>

