<?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: How do I delete an element from Hierarchy? in Forma Site Design Developer Forum</title>
    <link>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12588576#M335</link>
    <description>&lt;P&gt;Hei&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14492576"&gt;@iklimis&lt;/a&gt;:&lt;BR /&gt;&lt;BR /&gt;Right now, we dont support `removeElement` functionality. But, you can take a look at the `replaceElement` method. That, might satisfy your needs!!&lt;BR /&gt;&lt;BR /&gt;But, I will raise an internal feature request to support the `removeElement`.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 17:17:01 GMT</pubDate>
    <dc:creator>md_amjad_hossain</dc:creator>
    <dc:date>2024-02-28T17:17:01Z</dc:date>
    <item>
      <title>How do I delete an element from Hierarchy?</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12588049#M334</link>
      <description>&lt;P&gt;Hello Forma team&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Using the following code I manage to create a squared shaped geoJson and add it as an Element in the Hierarchy&lt;BR /&gt;But I haven't found a way to actually remove it (or delete it)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Keep in mind I have already tried using the&amp;nbsp;&lt;SPAN&gt;RenderGeojsonApi for the geoJson and keeping the id for using it in the remove method but this approach is not helpful because I want to allow the user to reposition(dragging) the square via moving it with the mouse.&lt;BR /&gt;&lt;BR /&gt;Basically what would be helpful is to use the element path to remove the element entirely (or the urn)&lt;BR /&gt;&lt;BR /&gt;Thanks for the help!&lt;BR /&gt;Giannis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  async createSquareSelection() {
    const geoJson = this.createGeoJSONSquare({x: 0, y: 0}, 100);

    const {id, urn, revision}  = await this.formaService.forma.integrateElements.createElementHierarchy({
      data: {
        rootElement: "root",
        elements: {
          root: {
            id: "root",
            properties: {
              category: "site_limit",
              color: "#C4313D",
              geometry: {
                type: "Inline",
                format: "GeoJSON",
                geoJson: geoJson,
              },
            },
          },
        },
      },
    });

    const res = await this.formaService.forma.proposal.addElement({
      urn,
    });
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 14:21:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12588049#M334</guid>
      <dc:creator>iklimis</dc:creator>
      <dc:date>2024-02-28T14:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete an element from Hierarchy?</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12588576#M335</link>
      <description>&lt;P&gt;Hei&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14492576"&gt;@iklimis&lt;/a&gt;:&lt;BR /&gt;&lt;BR /&gt;Right now, we dont support `removeElement` functionality. But, you can take a look at the `replaceElement` method. That, might satisfy your needs!!&lt;BR /&gt;&lt;BR /&gt;But, I will raise an internal feature request to support the `removeElement`.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 17:17:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12588576#M335</guid>
      <dc:creator>md_amjad_hossain</dc:creator>
      <dc:date>2024-02-28T17:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete an element from Hierarchy?</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12592707#M336</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14561942"&gt;@md_amjad_hossain&lt;/a&gt;&amp;nbsp;thanks for your reply!&lt;BR /&gt;&lt;BR /&gt;Yes a&amp;nbsp;&lt;SPAN&gt;removeElement() would provide a lot of help for this specific issue and for what I can imagine prove very helpful for future development ideas.&lt;BR /&gt;&lt;BR /&gt;I have experimented with replaceElement() but that requires the need to create a mock object (an empty one..) and replacing it instead of just removing the element cleanly.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Giannis&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 09:01:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12592707#M336</guid>
      <dc:creator>iklimis</dc:creator>
      <dc:date>2024-03-01T09:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete an element from Hierarchy?</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12593076#M337</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14492576"&gt;@iklimis&lt;/a&gt;&amp;nbsp;Do I understand correctly that you just want to temporary visualize the polygon? If so, you could use the &lt;A href="https://app.autodeskforma.com/forma-embedded-view-sdk/docs/classes/render.RenderGeojsonApi.html" target="_blank" rel="noopener"&gt;Render GeoJSON API&lt;/A&gt; to preview the square and remove it when you do not want to show it anymore. By using this API, the preview is automatically removed when you close your extension, which is something that would be nice in your use case as well?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 12:53:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12593076#M337</guid>
      <dc:creator>vilde.barth</dc:creator>
      <dc:date>2024-03-01T12:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete an element from Hierarchy?</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12593091#M338</link>
      <description>&lt;P&gt;Hey&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11475844"&gt;@vilde.barth&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Already experimented with the render geoJson but in this particular case wasn't convenient because we would like for the user to be able to drag the square around in a position convenient for them.&lt;BR /&gt;&lt;BR /&gt;The render geoJson doesnt allow that functionality.&lt;BR /&gt;The main goal is to allow the user to 'preview' the selection before they 'lock' it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 13:00:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12593091#M338</guid>
      <dc:creator>iklimis</dc:creator>
      <dc:date>2024-03-01T13:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete an element from Hierarchy?</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12593137#M339</link>
      <description>I see, thanks for explaining!</description>
      <pubDate>Fri, 01 Mar 2024 13:27:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12593137#M339</guid>
      <dc:creator>vilde.barth</dc:creator>
      <dc:date>2024-03-01T13:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete an element from Hierarchy?</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12593150#M340</link>
      <description>&lt;P&gt;Just a side note:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We do have `hideElement` and `unhideElement`, under `render` API, that absolutely could help you with your preview stuff!!&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 13:34:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12593150#M340</guid>
      <dc:creator>md_amjad_hossain</dc:creator>
      <dc:date>2024-03-01T13:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete an element from Hierarchy?</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12593241#M341</link>
      <description>&lt;P&gt;You guys are the best!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 14:27:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/how-do-i-delete-an-element-from-hierarchy/m-p/12593241#M341</guid>
      <dc:creator>iklimis</dc:creator>
      <dc:date>2024-03-01T14:27:28Z</dc:date>
    </item>
  </channel>
</rss>

