<?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: Arcpy - Cant move graphic element or change sourceImage in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-cant-move-graphic-element-or-change/m-p/1225418#M65941</link>
    <description>&lt;P&gt;AWESOME, THX!&lt;/P&gt;&lt;P&gt;I had tried something similar to that but must have been off&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 20:37:40 GMT</pubDate>
    <dc:creator>CA_SC_-_EricBall__GISS_</dc:creator>
    <dc:date>2022-10-25T20:37:40Z</dc:date>
    <item>
      <title>Arcpy - Cant move graphic element or change sourceImage</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-cant-move-graphic-element-or-change/m-p/1224953#M65925</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I am totally new to Arcpy/Python and trying to use it in ArcPro.&lt;/P&gt;&lt;P&gt;I have tried the sample code provided by Esri, but cant seem to get my image to update to a new image or to move its XY location. I have an advanced license and am working in a layout. I have tried running the code in the python window and in notebooks.&amp;nbsp; Clearly i am missing something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;aprx = arcpy.mp.ArcGISProject(r"C:\2022_Incidents_Practice\2022_Burbank\projects\2022_ProProjectTemplate.aprx")
lyt = aprx.listLayouts("myLayout")[0]
pic = lyt.listElements("PICTURE_ELEMENT", "TeamLogo")[0]
print(pic)
print(pic.sourceImage)
pic.sourceImage = r"C:\Users\EBall\OneDrive - City of Burbank\Desktop\FireLogo2.jpg" 
print(pic.sourceImage)
print(pic.elementPositionX)
print(pic.elementPositionY)
pic.elementPositionX = 4.75
pic.elementPositionY = 10.5&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the response of:&lt;/P&gt;&lt;PRE&gt;&amp;lt;arcpy._mp.PictureElement object at 0x000001D84FCF2C08&amp;gt;
C:\Users\EBall\OneDrive - City of Burbank\Desktop\FireLogo.jpg&lt;BR /&gt;C:\Users\EBall\OneDrive - City of Burbank\Desktop\FireLogo2.jpg
8.57
8.38&lt;/PRE&gt;&lt;P&gt;so it seems to be seeing the element just fine, but the element doesn't move in layout or update its image.&lt;/P&gt;&lt;P&gt;I've also tried changing to GRAPHIC_ELEMENT&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 22:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-cant-move-graphic-element-or-change/m-p/1224953#M65925</guid>
      <dc:creator>CA_SC_-_EricBall__GISS_</dc:creator>
      <dc:date>2022-10-24T22:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Cant move graphic element or change sourceImage</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-cant-move-graphic-element-or-change/m-p/1225046#M65932</link>
      <description>&lt;P&gt;You need to save the project.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;aprx.save()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're running this in the project you want to change, use "current" instead of the project path, that way you will see the updates in the project.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;aprx = arcpy.mp.ArcGISProject("current")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 05:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-cant-move-graphic-element-or-change/m-p/1225046#M65932</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-10-25T05:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Cant move graphic element or change sourceImage</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-cant-move-graphic-element-or-change/m-p/1225418#M65941</link>
      <description>&lt;P&gt;AWESOME, THX!&lt;/P&gt;&lt;P&gt;I had tried something similar to that but must have been off&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-cant-move-graphic-element-or-change/m-p/1225418#M65941</guid>
      <dc:creator>CA_SC_-_EricBall__GISS_</dc:creator>
      <dc:date>2022-10-25T20:37:40Z</dc:date>
    </item>
  </channel>
</rss>

