<?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 Open unsaved document (VB.net/VBA) in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-unsaved-document-vb-net-vba/m-p/10284910#M123998</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TRLD: How can i open a part that was ceated in an assembly bebore saving it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i create a new part in an assembly with the create button, the file is not created untill i save the part for the first time, so using " oDoc = thisapplication.Documents.open(file path) " won't work since no path exists.&lt;/P&gt;&lt;P&gt;Using the right click button, i can open the part and edit it. how can i open it using VBA/VB.net code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 May 2021 09:52:09 GMT</pubDate>
    <dc:creator>Eyal.Admon</dc:creator>
    <dc:date>2021-05-02T09:52:09Z</dc:date>
    <item>
      <title>Open unsaved document (VB.net/VBA)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-unsaved-document-vb-net-vba/m-p/10284910#M123998</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TRLD: How can i open a part that was ceated in an assembly bebore saving it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i create a new part in an assembly with the create button, the file is not created untill i save the part for the first time, so using " oDoc = thisapplication.Documents.open(file path) " won't work since no path exists.&lt;/P&gt;&lt;P&gt;Using the right click button, i can open the part and edit it. how can i open it using VBA/VB.net code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 09:52:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-unsaved-document-vb-net-vba/m-p/10284910#M123998</guid>
      <dc:creator>Eyal.Admon</dc:creator>
      <dc:date>2021-05-02T09:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Open unsaved document (VB.net/VBA)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-unsaved-document-vb-net-vba/m-p/10287150#M124036</link>
      <description>&lt;P&gt;To make document visible, you just add a view of it. Similar to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;    Dim doc As PartDocument
    Set doc = ThisApplication.Documents(ThisApplication.Documents.Count)
    
    Call doc.Views.Add
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 May 2021 14:15:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-unsaved-document-vb-net-vba/m-p/10287150#M124036</guid>
      <dc:creator>AlexKorzun</dc:creator>
      <dc:date>2021-05-03T14:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Open unsaved document (VB.net/VBA)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-unsaved-document-vb-net-vba/m-p/10288620#M124058</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I think you misunderstood&amp;nbsp; what i wanted to do but your comment helped a lot.&lt;/P&gt;&lt;P&gt;this is what i needed (VBA):&lt;/P&gt;&lt;LI-CODE lang="general"&gt; Set oDoc = ThisApplication.ActiveDocument
 Set sSet = oDoc.SelectSet
 Set oDoc2 = sSet.Item(1).Definition.Document
 oDoc2.Views.Add&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 06:01:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-unsaved-document-vb-net-vba/m-p/10288620#M124058</guid>
      <dc:creator>Eyal.Admon</dc:creator>
      <dc:date>2021-05-04T06:01:21Z</dc:date>
    </item>
  </channel>
</rss>

