<?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: Update element in Forma Site Design Developer Forum</title>
    <link>https://forums.autodesk.com/t5/forma-site-design-developer/update-element/m-p/12843893#M228</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6705490"&gt;@mostafa.elayoubi.ds&lt;/a&gt;&amp;nbsp;! Sorry for the late reply, but looks like you found the solution already!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a code example:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;const urn = mockRegisterElementInSystem() // See e.g. integrate-elements module
const { path } = await Forma.proposal.addElement({ urn })
const newUrn = mockRegisterElementInSystem() // See e.g. integrate-elements module
await Forma.proposal.replaceElement({ path, newUrn })&lt;/LI-CODE&gt;
&lt;P&gt;The code example is also available in the SDK documentation &lt;A href="https://app.autodeskforma.com/forma-embedded-view-sdk/docs/classes/proposal.ProposalApi.html#replaceElement" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Vilde in the Forma team&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 10:53:50 GMT</pubDate>
    <dc:creator>vilde.barth</dc:creator>
    <dc:date>2024-06-17T10:53:50Z</dc:date>
    <item>
      <title>Update element</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/update-element/m-p/12809881#M226</link>
      <description>&lt;P&gt;Hi there !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to update an element in the proposal by its urn or id but can't seem to find it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see there is a way to update library items, but not the elements created via&amp;nbsp;&lt;SPAN class=""&gt;Forma&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;integrateElements&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;createElementHierarchy .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thank you for your attention!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 12:06:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/update-element/m-p/12809881#M226</guid>
      <dc:creator>mostafa.elayoubi.ds</dc:creator>
      <dc:date>2024-05-31T12:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Update element</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/update-element/m-p/12809965#M227</link>
      <description>&lt;P&gt;Okay I think i figured out a way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use addElement and store the path, then I use replaceElement . Is this the best way to do it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 12:50:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/update-element/m-p/12809965#M227</guid>
      <dc:creator>mostafa.elayoubi.ds</dc:creator>
      <dc:date>2024-05-31T12:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Update element</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/update-element/m-p/12843893#M228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6705490"&gt;@mostafa.elayoubi.ds&lt;/a&gt;&amp;nbsp;! Sorry for the late reply, but looks like you found the solution already!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a code example:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;const urn = mockRegisterElementInSystem() // See e.g. integrate-elements module
const { path } = await Forma.proposal.addElement({ urn })
const newUrn = mockRegisterElementInSystem() // See e.g. integrate-elements module
await Forma.proposal.replaceElement({ path, newUrn })&lt;/LI-CODE&gt;
&lt;P&gt;The code example is also available in the SDK documentation &lt;A href="https://app.autodeskforma.com/forma-embedded-view-sdk/docs/classes/proposal.ProposalApi.html#replaceElement" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Vilde in the Forma team&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 10:53:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/update-element/m-p/12843893#M228</guid>
      <dc:creator>vilde.barth</dc:creator>
      <dc:date>2024-06-17T10:53:50Z</dc:date>
    </item>
  </channel>
</rss>

