<?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: Delete body in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430679#M142815</link>
    <description>&lt;P&gt;hi, this mean end of part:) maybe this will hel to explain:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=JlzUTzM47ns" target="_blank"&gt;https://www.youtube.com/watch?v=JlzUTzM47ns&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 12:14:20 GMT</pubDate>
    <dc:creator>marcin_otręba</dc:creator>
    <dc:date>2022-09-19T12:14:20Z</dc:date>
    <item>
      <title>Delete body</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430597#M142810</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is probably a bit exotic question but is it possible to delete a body inside a part environment with iLogic code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generate this body from another assembly, then I delete it after I finish extracting parameters from Region properties. That means that every time I repeat the process the name of the body changes (Base1 then Base 2, then Base 3...etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomislavperan_0-1663586138135.png" style="width: 154px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1117727i62A513C715B27B60/image-dimensions/154x388?v=v2" width="154" height="388" role="button" title="tomislavperan_0-1663586138135.png" alt="tomislavperan_0-1663586138135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If somebody knows how to delete this body please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 11:31:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430597#M142810</guid>
      <dc:creator>tomislav.peran</dc:creator>
      <dc:date>2022-09-19T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delete body</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430651#M142813</link>
      <description>&lt;P&gt;you can use this for start, it assumes that last feature will be EOP so it will delete one before:&lt;/P&gt;&lt;P&gt;of course you can extend code and check if that feature what you wanted comparing name of feature and assembly name it should be traceable, but if the processs is always the same so you immport assembly to part it should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;    Dim oPartDoc As PartDocument = ThisApplication.ActiveDocument
    Dim oTopBrowserNode As BrowserNode= oPartDoc.BrowserPanes.ActivePane.TopNode
    Dim onode As BrowserNode = oTopBrowserNode.BrowserNodes.Item(oTopBrowserNode.BrowserNodes.Count - 1)
 onode.NativeObject.Delete&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 12:03:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430651#M142813</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2022-09-19T12:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delete body</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430664#M142814</link>
      <description>&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works well for me indeed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have a question. What EOP means?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 12:09:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430664#M142814</guid>
      <dc:creator>tomislav.peran</dc:creator>
      <dc:date>2022-09-19T12:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Delete body</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430679#M142815</link>
      <description>&lt;P&gt;hi, this mean end of part:) maybe this will hel to explain:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=JlzUTzM47ns" target="_blank"&gt;https://www.youtube.com/watch?v=JlzUTzM47ns&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 12:14:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430679#M142815</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2022-09-19T12:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Delete body</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430689#M142816</link>
      <description>&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ahaa, yes, I understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the help &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 12:18:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-body/m-p/11430689#M142816</guid>
      <dc:creator>tomislav.peran</dc:creator>
      <dc:date>2022-09-19T12:18:49Z</dc:date>
    </item>
  </channel>
</rss>

