<?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 Movings points in my geometric network to their absolute X,Y obtained through GPS (part 2) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/movings-points-in-my-geometric-network-to-their/m-p/459134#M36005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Original post located here: &lt;A href="https://community.esri.com/thread/131318"&gt;Movings points in my geometric network to their absolute X,Y obtained through GPS&lt;/A&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;I have the same issue as TanMay and was able to use this script to move some points based on the new X,Y coordinates. Thanks! Unfortunately as soon as I created a geometric network I got an error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;line 17, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in Cur:&lt;/P&gt;&lt;P&gt;RuntimeError: Unspecified error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get this script to work with a geometric network?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I also get this error when I try to run the script in ArcMap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;RuntimeError: The modified geometry must be a different geometry instance from the feature's original geometry (e.g., a copy or new instance). [class name = ServiceLocations, object id = 4]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initial answer by: &lt;A href="https://community.esri.com/migrated-users/5327"&gt;Neil Ayres&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;EM&gt;Without knowing the details it is difficult to say. Type of db?&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;EM&gt;Are you saying that the points are participating in a network?&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;EM&gt;You may have to wrap the update cursor loop in an editor session.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Message was edited by: Xander Bakker: Branched to new question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2016 01:49:43 GMT</pubDate>
    <dc:creator>AdelaideZumwalt2</dc:creator>
    <dc:date>2016-01-29T01:49:43Z</dc:date>
    <item>
      <title>Movings points in my geometric network to their absolute X,Y obtained through GPS (part 2)</title>
      <link>https://community.esri.com/t5/python-questions/movings-points-in-my-geometric-network-to-their/m-p/459134#M36005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Original post located here: &lt;A href="https://community.esri.com/thread/131318"&gt;Movings points in my geometric network to their absolute X,Y obtained through GPS&lt;/A&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;I have the same issue as TanMay and was able to use this script to move some points based on the new X,Y coordinates. Thanks! Unfortunately as soon as I created a geometric network I got an error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;line 17, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in Cur:&lt;/P&gt;&lt;P&gt;RuntimeError: Unspecified error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get this script to work with a geometric network?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I also get this error when I try to run the script in ArcMap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;RuntimeError: The modified geometry must be a different geometry instance from the feature's original geometry (e.g., a copy or new instance). [class name = ServiceLocations, object id = 4]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initial answer by: &lt;A href="https://community.esri.com/migrated-users/5327"&gt;Neil Ayres&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;EM&gt;Without knowing the details it is difficult to say. Type of db?&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;EM&gt;Are you saying that the points are participating in a network?&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;EM&gt;You may have to wrap the update cursor loop in an editor session.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Message was edited by: Xander Bakker: Branched to new question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 01:49:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/movings-points-in-my-geometric-network-to-their/m-p/459134#M36005</guid>
      <dc:creator>AdelaideZumwalt2</dc:creator>
      <dc:date>2016-01-29T01:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Movings points in my geometric network to their absolute X,Y obtained through GPS (part 2)</title>
      <link>https://community.esri.com/t5/python-questions/movings-points-in-my-geometric-network-to-their/m-p/459135#M36006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a file geodatabase and my points are participating in a geometric network. Esri provided this information: &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/fr/knowledgebase/techarticles/detail/34792" title="http://support.esri.com/fr/knowledgebase/techarticles/detail/34792"&gt;34792 - The modified geometry must be a different geometry instance from the feature's original geometry (e.g., a copy o…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm confused as to how to use the workaround. I need my lines to move with my points (as if I were using the "Move To" editing tool). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 20:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/movings-points-in-my-geometric-network-to-their/m-p/459135#M36006</guid>
      <dc:creator>AdelaideZumwalt2</dc:creator>
      <dc:date>2016-01-29T20:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Movings points in my geometric network to their absolute X,Y obtained through GPS (part 2)</title>
      <link>https://community.esri.com/t5/python-questions/movings-points-in-my-geometric-network-to-their/m-p/459136#M36007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever figure this out? I am getting the same issue. Geometric network in a .sde database.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 15:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/movings-points-in-my-geometric-network-to-their/m-p/459136#M36007</guid>
      <dc:creator>ChrisZemp</dc:creator>
      <dc:date>2020-04-20T15:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Movings points in my geometric network to their absolute X,Y obtained through GPS (part 2)</title>
      <link>https://community.esri.com/t5/python-questions/movings-points-in-my-geometric-network-to-their/m-p/459137#M36008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting the same error message in Schneider Electric ArcFM's Disconnect Tool in 10.6.1 if the SHAPE column is the first editable field in the list.&amp;nbsp; I would like to know what version of ArcGIS Desktop this specific check was added.&amp;nbsp; I don't think this check was in 10.2.1 because it works OK there, but it definitely is in 10.6.1.&lt;/P&gt;&lt;P&gt;The main idea is that you can't set the SHAPE column value = the same SHAPE column value.&amp;nbsp; You have to use IFeature.ShapeCopy to get a copy of the geometry or create a whole new geometry then set THAT into the feature's SHAPE column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 18:39:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/movings-points-in-my-geometric-network-to-their/m-p/459137#M36008</guid>
      <dc:creator>JoshPritt</dc:creator>
      <dc:date>2020-08-21T18:39:13Z</dc:date>
    </item>
  </channel>
</rss>

