<?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: Move Features in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/move-features/m-p/631096#M49142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I skipped the geometry section once the word point was listed.&amp;nbsp; Since, I only intend to use Polylines, Polygons, and Annotations.&amp;nbsp; Your suggestion works well for one Polyline.&amp;nbsp; I am going to try and modify the script to work with multiple Polylines, Polygons, and Annotations(if possible).&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2013 14:00:26 GMT</pubDate>
    <dc:creator>JamesSmith7</dc:creator>
    <dc:date>2013-10-10T14:00:26Z</dc:date>
    <item>
      <title>Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631089#M49135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to select features within ArcMap, run the script, and move the selected features by a distance entered.&amp;nbsp; I am attempting to recreate the Editor Move Tool and the wheel.&amp;nbsp; I read through the documentation;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//01m80000000s000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//01m80000000s000000&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; But, the documetation dos not provide a script example.&amp;nbsp; I was thinking something along the lines of the following script.&amp;nbsp; An attribute error exists on the line reading, ext = lyr.extent.&amp;nbsp; I tried including a layer in the ListLayers function, but that did not solve the error.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;mxd = arcpy.mapping.MapDocument ("CURRENT")&lt;BR /&gt;df = arcpy.mapping.ListDataFrames (mxd)[0]&lt;BR /&gt;lyr = arcpy.mapping.ListLayers(mxd, df)&lt;BR /&gt;&lt;BR /&gt;EW = arcpy.GetParameter(0)&lt;BR /&gt;NS = arcpy.GetParameter(1)&lt;BR /&gt;&lt;BR /&gt;#orig extent&lt;BR /&gt;ext = lyr.extent&lt;BR /&gt;#mods&lt;BR /&gt;ext.XMin += EW&lt;BR /&gt;ext.XMax += EW&lt;BR /&gt;ext.YMin += NS&lt;BR /&gt;ext.YMax += NS&lt;BR /&gt;#new extent&lt;BR /&gt;lyr.extent = ext&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 18:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631089#M49135</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-10-08T18:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631090#M49136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;extent is not a property of a layer object. Read through the doc here to find what you are looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Layer/00s300000008000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Layer/00s300000008000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, you cannot modify the extent of a layer in that manner, you will need to modify the geometry. Finally, how you are calling a layer object is actually returning the list of layers. You will need to reference an index in the same manner you do with the dataframe object to reference an individual layer object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 18:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631090#M49136</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-10-08T18:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631091#M49137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does Python provide a "short cut" approach other than using ListLayers?&amp;nbsp; Otherwise, I will be typing out 50+ Feature Classes.&amp;nbsp; Which is why I had hoped to be able to use use a generic, lyr = arcpy.mapping.ListLayers(mxd, df), and allow for any layer within the TOC to be selected and moved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 11:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631091#M49137</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-10-09T11:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631092#M49138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Geometry/018z00000070000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Geometry/018z00000070000000/&lt;/A&gt;&lt;SPAN&gt; the geometry information you suggested?&amp;nbsp; If so, ESRI's example illustrates how to calculate geometry length.&amp;nbsp; Where can I find information and script examples on how to move a selected feature?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 14:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631092#M49138</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-10-09T14:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631093#M49139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See reading and writing geometries using cursors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002z0000001v000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//002z0000001v000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 16:47:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631093#M49139</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-10-09T16:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631094#M49140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The script returns arcpy.AddMessage("Feature(s) not moved").&amp;nbsp;&amp;nbsp; What am I doing incorrectly to move selected features?&amp;nbsp; Railroads is a Polyline Feature Class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;rai = arcpy.mapping.ListLayers(mxd, "Railroads", df)[0]

EW = arcpy.GetParameter(0)
NS = arcpy.GetParameter(1)

with arcpy.da.UpdateCursor(rai, ['OID@', 'SHAPE@X', 'SHAPE@Y']) as cursor:
 EWmove = 0
 NSmove = 0
 for row in cursor:
&amp;nbsp; if row[1] &amp;gt;= '0':
&amp;nbsp;&amp;nbsp; cursor.updateRow(row)
&amp;nbsp; elif row[2] &amp;gt;= '0':
&amp;nbsp;&amp;nbsp; cursor.updateRow(row)
&amp;nbsp; else:
&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Feature(s) not moved")
&amp;nbsp; 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631094#M49140</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2021-12-12T02:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631095#M49141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are using updateRow incorrectly. That takes a row object, not the row values. Also, if you are updating a line feature you need to change each vertex value, which means will will need to access the geometry object and step through each one, modify it, add it to an array, then pass it back to a polyline object to be updated in the geometry object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

rai = arcpy.mapping.ListLayers(mxd, "Railroads", df)[0]
EWmove = float(arcpy.GetParameter(0))
NSmove = float(arcpy.GetParameter(1))
update_cursor = arcpy.da.UpdateCursor(rai, 'SHAPE@')
for row in update_cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; array = arcpy.Array()
&amp;nbsp;&amp;nbsp;&amp;nbsp; for part in row[0]:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for point in part:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.X += EWmove
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.Y += NSmove
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(point)

&amp;nbsp;&amp;nbsp;&amp;nbsp; new_line = arcpy.Polyline(array)
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = new_line
&amp;nbsp;&amp;nbsp;&amp;nbsp; update_cursor.updateRow(row)

del update_cursor
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631095#M49141</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-12T02:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631096#M49142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I skipped the geometry section once the word point was listed.&amp;nbsp; Since, I only intend to use Polylines, Polygons, and Annotations.&amp;nbsp; Your suggestion works well for one Polyline.&amp;nbsp; I am going to try and modify the script to work with multiple Polylines, Polygons, and Annotations(if possible).&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 14:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631096#M49142</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2013-10-10T14:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631097#M49143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't actually have to update each vertex according to the Café Python page..&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://arcpy.wordpress.com/page/2/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://arcpy.wordpress.com/page/2/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just update the SHAPE@XY token instead, then the whole feature moves.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;like :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
with arcpy.da.UpdateCursor(in_features, ['SHAPE@XY']) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow([[row[0][0] + (x_shift or 0), row[0][1] + (y_shift or 0)]])
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631097#M49143</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2021-12-12T02:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631098#M49144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You don't actually have to update each vertex according to the Café Python page..&lt;BR /&gt;&lt;A href="http://arcpy.wordpress.com/page/2/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://arcpy.wordpress.com/page/2/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;just update the SHAPE@XY token instead, then the whole feature moves.&lt;BR /&gt;&lt;BR /&gt;like :&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
with arcpy.da.UpdateCursor(in_features, ['SHAPE@XY']) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow([[row[0][0] + (x_shift or 0), row[0][1] + (y_shift or 0)]])
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Neil&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That makes it much easier, good find.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:51:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631098#M49144</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-12T02:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631099#M49145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What am I not seeing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
rai = arcpy.mapping.ListLayers(mxd, "Railroads", df)[0]
EWmove = float(arcpy.GetParameter(0))
NSmove = float(arcpy.GetParameter(1))

def shift_features(in_features, EWmove=None, NSmove=None):
 in_features = rai
 point.X += EWmove
 point.Y += NSmove
 with arcpy.da.UpdateCursor(rai, ['SHAPE@XY']) as cursor:
&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp; cursor.updateRow([[row[0][0] + (EWmove or 0), row[0][1] + (NSmove or 0)]])
 return

arcpy.RefreshActiveView()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631099#M49145</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2021-12-12T02:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631100#M49146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
rai = arcpy.mapping.ListLayers(mxd, "Railroads", df)[0]
EWmove = float(arcpy.GetParameter(0))
NSmove = float(arcpy.GetParameter(1))

def shift_features(in_features, EWmove=None, NSmove=None):
 in_features = rai
 point.X += EWmove
 point.Y += NSmove
 with arcpy.da.UpdateCursor(rai, ['SHAPE@XY']) as cursor:
&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp; cursor.updateRow([[row[0][0] + (EWmove or 0), row[0][1] + (NSmove or 0)]])
 return

arcpy.RefreshActiveView()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;shouldn't this be...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
rai = arcpy.mapping.ListLayers(mxd, "Railroads", df)[0]
EWmove = float(arcpy.GetParameter(0))
NSmove = float(arcpy.GetParameter(1))

def shift_features(in_features, EWmove=None, NSmove=None):
&amp;nbsp;&amp;nbsp;&amp;nbsp; rai = in_features
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.UpdateCursor(rai, ['SHAPE@XY']) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow([[row[0][0] + (EWmove), row[0][1] + (NSmove)]])
return

arcpy.RefreshActiveView()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631100#M49146</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2021-12-12T02:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Move Features</title>
      <link>https://community.esri.com/t5/python-questions/move-features/m-p/631101#M49147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
rai = arcpy.mapping.ListLayers(mxd, "Railroads", df)[0]
EWmove = float(arcpy.GetParameter(0))
NSmove = float(arcpy.GetParameter(1))

def shift_features(in_features, EWmove=None, NSmove=None):
 in_features = rai
 point.X += EWmove
 point.Y += NSmove
 with arcpy.da.UpdateCursor(rai, ['SHAPE@XY']) as cursor:
&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp; cursor.updateRow([[row[0][0] + (EWmove or 0), row[0][1] + (NSmove or 0)]])
 return

arcpy.RefreshActiveView()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;shouldn't this be...&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
rai = arcpy.mapping.ListLayers(mxd, "Railroads", df)[0]
EWmove = float(arcpy.GetParameter(0))
NSmove = float(arcpy.GetParameter(1))

def shift_features(in_features, EWmove=None, NSmove=None):
&amp;nbsp;&amp;nbsp;&amp;nbsp; rai = in_features
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.UpdateCursor(rai, ['SHAPE@XY']) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow([[row[0][0] + (EWmove), row[0][1] + (NSmove)]])
return

arcpy.RefreshActiveView()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Neil&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Neither of these two approaches work.&amp;nbsp; They both run with no results or errors.&amp;nbsp; The other suggestion by Matt works.&amp;nbsp; So, I am going to modify Matt's suggestion.&amp;nbsp; I appreciate the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:51:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-features/m-p/631101#M49147</guid>
      <dc:creator>JamesSmith7</dc:creator>
      <dc:date>2021-12-12T02:51:15Z</dc:date>
    </item>
  </channel>
</rss>

