<?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: Explicitly Assigning Reference Document to Variable Via Drawing Display Name in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/explicitly-assigning-reference-document-to-variable-via-drawing/m-p/11635399#M28924</link>
    <description>&lt;P&gt;Can you explain it n a little more detail your design intent? What is the end result to be?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can access referenced objects of the view via this method. Maybe this will help you.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;assyDocName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; =  &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;FullDocumentName&lt;/SPAN&gt;

&lt;SPAN&gt;'open assembly doc invisibly  &lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;assyDocName&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 01:17:37 GMT</pubDate>
    <dc:creator>A.Acheson</dc:creator>
    <dc:date>2022-12-22T01:17:37Z</dc:date>
    <item>
      <title>Explicitly Assigning Reference Document to Variable Via Drawing Display Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/explicitly-assigning-reference-document-to-variable-via-drawing/m-p/11635175#M28923</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;I would like to assign a specific instance of referenced document in a drawing to a variable via&lt;BR /&gt;the display name. I can get the same results with a loop like the one below.&lt;BR /&gt;&lt;BR /&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;BR /&gt;&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocuments&lt;BR /&gt;     If oDoc.DisplayName = "Assembly1"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;But I can't seem to assign it explicitly as implied here.

&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocuments&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;(&lt;SPAN&gt;"Assembly1"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;Is there a way to do this? Is this a syntax issue or something more? Thanks

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 22:39:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/explicitly-assigning-reference-document-to-variable-via-drawing/m-p/11635175#M28923</guid>
      <dc:creator>dustinbagley</dc:creator>
      <dc:date>2022-12-21T22:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Explicitly Assigning Reference Document to Variable Via Drawing Display Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/explicitly-assigning-reference-document-to-variable-via-drawing/m-p/11635399#M28924</link>
      <description>&lt;P&gt;Can you explain it n a little more detail your design intent? What is the end result to be?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can access referenced objects of the view via this method. Maybe this will help you.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;assyDocName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; =  &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;FullDocumentName&lt;/SPAN&gt;

&lt;SPAN&gt;'open assembly doc invisibly  &lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;assyDocName&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 01:17:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/explicitly-assigning-reference-document-to-variable-via-drawing/m-p/11635399#M28924</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-12-22T01:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Explicitly Assigning Reference Document to Variable Via Drawing Display Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/explicitly-assigning-reference-document-to-variable-via-drawing/m-p/11636706#M28925</link>
      <description>&lt;P&gt;Sorry, what I want to know is how to assign an assembly document to a variable in a drawing through the browser using the browser display name. I know that I can do this by looping through all of the browser display names&amp;nbsp;until I find the one I want. (for each Document in DrawingDocument.ReferencedDocuments, If Document.DisplayName = String Then do something with the current Document)&amp;nbsp; But if I can directly call it without the loop, that's what I would like to do.&lt;/P&gt;&lt;P&gt;(Document =&amp;nbsp;DrawingDocument.ReferencedDocuments.DisplayName(String)&lt;/P&gt;&lt;P&gt;Also, I would like to avoid using filenames because these files will be copied with new filenames&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 15:56:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/explicitly-assigning-reference-document-to-variable-via-drawing/m-p/11636706#M28925</guid>
      <dc:creator>dustinbagley</dc:creator>
      <dc:date>2022-12-22T15:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Explicitly Assigning Reference Document to Variable Via Drawing Display Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/explicitly-assigning-reference-document-to-variable-via-drawing/m-p/11637534#M28926</link>
      <description>&lt;P&gt;I'm struggling to figure out your design intent. Maybe some images would help and what the end goal would be. Are your referring to the browser node label? BrowserNodeDefinition.&lt;STRONG&gt;Label&lt;/STRONG&gt;() As String&amp;nbsp;&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="AAcheson_0-1671746557308.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1155586iFAF4DCB27A2949D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_0-1671746557308.png" alt="AAcheson_0-1671746557308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so this can only be accessed by looping through the browser nodes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 22:07:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/explicitly-assigning-reference-document-to-variable-via-drawing/m-p/11637534#M28926</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-12-22T22:07:24Z</dc:date>
    </item>
  </channel>
</rss>

