<?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: Open a file from Assembly with iLogic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/9279893#M105084</link>
    <description>&lt;P&gt;1. Do you think I was magically born with all of this knowledge, or did I perhaps go through the same struggles of trial and error with this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You're not entitled to anyone's help. Maybe reconsider your perspective. Would helping people be the "nice" thing to do? Yes. Is helping people a requirement/owed to people? No.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Read and learn. It's a sloppy mix of iLogic and vb.net, but it works.&lt;/P&gt;
&lt;PRE&gt;Sub Main()
	OpenDocByBrowserName("PartB:1")
End Sub

Sub OpenDocByBrowserName(oBrowserName)
	Dim compOcc As Inventor.ComponentOccurrence
	Try
		compOcc = Component.InventorComponent(oBrowserName)
	Catch
		MsgBox("Issue finding browser name." &amp;amp; vbLf &amp;amp; vbLf &amp;amp; Chr(34) &amp;amp; oBrowserName &amp;amp; Chr(34))
		Exit Sub
	End Try
	
	Dim oDoc As Inventor.Document
	oDoc = compOcc.Definition.Document
	oDocName = oDoc.FullDocumentName
	
	Try
		ThisApplication.Documents.Open(oDocName, True)
	Catch
		MsgBox("File has not been saved or other issue opening file occurred" &amp;amp; vbLf &amp;amp; vbLf &amp;amp; Chr(34) &amp;amp; oBrowserName &amp;amp; Chr(34))
		Exit Sub
	End Try
End Sub&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 Jan 2020 15:26:45 GMT</pubDate>
    <dc:creator>MechMachineMan</dc:creator>
    <dc:date>2020-01-28T15:26:45Z</dc:date>
    <item>
      <title>Open a file from Assembly with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/5653121#M56131</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there a iLogic rule to open a part froma the assembly browser?&lt;/P&gt;
&lt;P&gt;I tried this code but it doesent work &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@F462EEC827775DA92CB03B7FC147D389/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compo = Component.InventorComponent("Obere Rahmen:1")&lt;BR /&gt;compo.Open&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2015 11:21:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/5653121#M56131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-27T11:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open a file from Assembly with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/5653594#M56150</link>
      <description>Try delving deeper into the API Help, and going through some examples rather than posting 10 million times on the forums trying to get other people to do your work for you.&lt;BR /&gt;&lt;BR /&gt;Also, the "SEARCH THIS BOARD" feature is superb. I suggest you give it a try.</description>
      <pubDate>Wed, 27 May 2015 14:31:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/5653594#M56150</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-05-27T14:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Open a file from Assembly with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/9276943#M105036</link>
      <description>&lt;P&gt;So helpful... Maybe you're doing the small amount of work for them (if you know API and iLogic, this would take you less than 5 minutes), but you're helping countless people years later dealing with the same issue. These few lines you could've posted would have been great help to further learn this coding, as most of us will learn by trial and error.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 14:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/9276943#M105036</guid>
      <dc:creator>nbarbars</dc:creator>
      <dc:date>2020-01-27T14:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Open a file from Assembly with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/9279893#M105084</link>
      <description>&lt;P&gt;1. Do you think I was magically born with all of this knowledge, or did I perhaps go through the same struggles of trial and error with this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You're not entitled to anyone's help. Maybe reconsider your perspective. Would helping people be the "nice" thing to do? Yes. Is helping people a requirement/owed to people? No.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Read and learn. It's a sloppy mix of iLogic and vb.net, but it works.&lt;/P&gt;
&lt;PRE&gt;Sub Main()
	OpenDocByBrowserName("PartB:1")
End Sub

Sub OpenDocByBrowserName(oBrowserName)
	Dim compOcc As Inventor.ComponentOccurrence
	Try
		compOcc = Component.InventorComponent(oBrowserName)
	Catch
		MsgBox("Issue finding browser name." &amp;amp; vbLf &amp;amp; vbLf &amp;amp; Chr(34) &amp;amp; oBrowserName &amp;amp; Chr(34))
		Exit Sub
	End Try
	
	Dim oDoc As Inventor.Document
	oDoc = compOcc.Definition.Document
	oDocName = oDoc.FullDocumentName
	
	Try
		ThisApplication.Documents.Open(oDocName, True)
	Catch
		MsgBox("File has not been saved or other issue opening file occurred" &amp;amp; vbLf &amp;amp; vbLf &amp;amp; Chr(34) &amp;amp; oBrowserName &amp;amp; Chr(34))
		Exit Sub
	End Try
End Sub&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2020 15:26:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/9279893#M105084</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2020-01-28T15:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Open a file from Assembly with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/9279927#M105086</link>
      <description>&lt;P&gt;&lt;SPAN&gt;These few lines you posted has been great help to further learn this coding, as I mostly learn by trial and error. Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 15:41:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/9279927#M105086</guid>
      <dc:creator>nbarbars</dc:creator>
      <dc:date>2020-01-28T15:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Open a file from Assembly with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/9280054#M105089</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is another example for doing this, that I use...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;oOcc&lt;/SPAN&gt; = &lt;SPAN&gt;"PartA:1"&lt;/SPAN&gt;

&lt;SPAN&gt;Try&lt;/SPAN&gt; 
	&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Launch&lt;/SPAN&gt;(&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;InventorComponent&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc&lt;/SPAN&gt;).&lt;SPAN&gt;Definition&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;)
&lt;SPAN&gt;Catch&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 16:23:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/open-a-file-from-assembly-with-ilogic/m-p/9280054#M105089</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2020-01-28T16:23:58Z</dc:date>
    </item>
  </channel>
</rss>

