<?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: Automatic Unsolved Identification in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196471#M156875</link>
    <description>&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Renamed file - missing reference&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2023 11:58:50 GMT</pubDate>
    <dc:creator>ersin_karacoban</dc:creator>
    <dc:date>2023-08-25T11:58:50Z</dc:date>
    <item>
      <title>Automatic Unsolved Identification</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196102#M156872</link>
      <description>&lt;P&gt;Is there a code to automatically identify parts with changed names in the assembly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 08:47:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196102#M156872</guid>
      <dc:creator>ersin_karacoban</dc:creator>
      <dc:date>2023-08-25T08:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Unsolved Identification</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196110#M156873</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13615262"&gt;@ersin_karacoban&lt;/a&gt;&amp;nbsp;.&amp;nbsp;You can distinguish your documents using InternalName. Example code:&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oDoc As AssemblyDocument = ThisDoc.Document
For Each oRefDoc As Document In oDoc.AllReferencedDocuments
	MessageBox.Show(oRefDoc.InternalName, oRefDoc.DisplayName)
Next&lt;/LI-CODE&gt;&lt;P&gt;InternalName - a unique static name of the object that does not change, but is set when the document is created.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 08:52:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196110#M156873</guid>
      <dc:creator>Andrii_Humeniuk</dc:creator>
      <dc:date>2023-08-25T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Unsolved Identification</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196322#M156874</link>
      <description>&lt;P&gt;What does it mean "parts with changed names in the assembly"? It is&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Renamed occurrence - Node text in assembly tree&lt;/LI&gt;&lt;LI&gt;Changed DisplayName of document - Display name (root node in model tree) is different from file name&lt;/LI&gt;&lt;LI&gt;Renamed file - missing reference&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 25 Aug 2023 10:39:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196322#M156874</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2023-08-25T10:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Unsolved Identification</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196471#M156875</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Renamed file - missing reference&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 11:58:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196471#M156875</guid>
      <dc:creator>ersin_karacoban</dc:creator>
      <dc:date>2023-08-25T11:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Unsolved Identification</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196561#M156876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13615262"&gt;@ersin_karacoban&lt;/a&gt;.&amp;nbsp; Maybe this example code will give you some ideas.&amp;nbsp; It is just for checking the top level (or direct) document and file references of a single document, as it is.&amp;nbsp; But a routine similar to this could be put into a separate custom Function, and called from the main routine, as it iterates through all levels of an assembly.&amp;nbsp; I am not sure what you were expecting as a result (or feedback) of running a rule like this, bit this example uses two List(Of String) type objects to keep track of only the ones that are 'missing', then shows you the list at the end of both loops.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub Main
	Dim oDoc As Document = ThisDoc.Document
	CheckDocuments :
	Dim oList1 As New List(Of String)
	Dim oRDDs As DocumentDescriptorsEnumerator = oDoc.ReferencedDocumentDescriptors
	If oRDDs.Count &amp;gt; 0 Then
		For Each oRDD As DocumentDescriptor In oRDDs
			'If oRDD.ReferenceSuppressed Then
			'If oRDD.ReferenceDisabled Then
			'If oRDD.ReferenceInternalNameDifferent Then
			If oRDD.ReferenceMissing Then
				oList1.Add(oRDD.FullDocumentName)
			End If
		Next 'oRefDoc
	End If
	If oList1.Count &amp;gt; 0 Then
		a = InputListBox("", oList1, "", "DocumentDescriptors Missing References")
	End If
	CheckFiles :
	Dim oList2 As New List(Of String)
	If oDoc.FileSaveCounter &amp;gt; 0 Then
		Dim oRFDs As FileDescriptorsEnumerator = oDoc.File.ReferencedFileDescriptors
		If oRFDs.Count &amp;gt; 0 Then
			For Each oRFD As FileDescriptor In oRFDs
				'If oRFD.ReferenceLocationDifferent Then
				'If oRFD.ReferenceDisabled Then
				'If oRFD.ReferenceInternalNameDifferent Then
				If oRFD.ReferenceMissing Then
					oList2.Add(oRFD.FullFileName)
				End If
			Next 'oRFD
		End If
	End If
	If oList2.Count &amp;gt; 0 Then
		a = InputListBox("", oList2, "", "FileDescriptors Missing References")
	End If
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN&gt;&lt;STRONG&gt; ACCEPT SOLUTION &lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@7401B55A0A518861312A0F851CD29320/emoticons/1f44d.png" alt=":thumbs_up:" title=":thumbs_up:" /&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 12:45:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196561#M156876</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-08-25T12:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Unsolved Identification</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196664#M156877</link>
      <description>&lt;P&gt;Actually, I know what I need to do but I can't code it. It will try to open all the parts in the same folder, click "no" when the "unresolved" warning appears, and try the next part. When this cycle is over, if the part with the "unresolved" warning is already in the folder, our problem will be solved.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 13:47:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196664#M156877</guid>
      <dc:creator>ersin_karacoban</dc:creator>
      <dc:date>2023-08-25T13:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Unsolved Identification</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196690#M156878</link>
      <description>&lt;P&gt;That sounds like you may just need to use &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=Documents_OpenWithOptions" target="_blank" rel="noopener"&gt;Documents.OpenWithOptions&lt;/A&gt; method, instead of the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=Documents_Open" target="_blank" rel="noopener"&gt;Documents.Open&lt;/A&gt; method.&amp;nbsp; Then, just before you call that method to run, you create a new NameValueMap object, and make sure you add an entry into it with the Name = "SkipAllUnresolvedFiles", and the Value = True.&amp;nbsp; Then supply that NameValueMap as the second (of 3) input being requested by the method.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 13:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/automatic-unsolved-identification/m-p/12196690#M156878</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-08-25T13:55:00Z</dc:date>
    </item>
  </channel>
</rss>

