<?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: How to delete non-existing reference in Inventor DWG in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984722#M60857</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your suggestion. Unfortunately the 'Links' command is disabled (probably because it can't find link).&amp;nbsp;Another weird thing though; Design Assistent is complaining about the missing reference as well. As far as I know Design Assistent is using Inventor Apprentice, but can't find the reference to the bitmap in the ApprenticeServerDocument either...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="NonExistingLink.png" alt="NonExistingLink.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/211020iF363AB42E0B79100/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2016 15:19:03 GMT</pubDate>
    <dc:creator>psaarloos</dc:creator>
    <dc:date>2016-01-12T15:19:03Z</dc:date>
    <item>
      <title>How to delete non-existing reference in Inventor DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984397#M60848</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a problem with Inventor DWG files. After moving to Vault they seem to have a reference to a bitmap. I found an older posting in the Vault forums which highlights the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/vault-general-discussion/fix-this-stupid-problem-reference-to-non-existing-bitmap-in/td-p/3220738" target="_blank"&gt;https://forums.autodesk.com/t5/vault-general-discussion/fix-this-stupid-problem-reference-to-non-existing-bitmap-in/td-p/3220738&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I remove this reference with the Inventor API? Using the AutoCAD API is not an option. Or is there any other fix possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pim&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:27:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984397#M60848</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2016-01-12T12:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete non-existing reference in Inventor DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984415#M60849</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;for this problem I use my inventor macro (seven years old).&amp;nbsp;I tryed it only for idw. You can try it for dwg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub Vymaz_ExtRef()&lt;BR /&gt;Dim oDoc As Inventor.Document&lt;BR /&gt;Dim ref As Inventor.ReferencedOLEFileDescriptor&lt;BR /&gt;Dim i As Integer&lt;BR /&gt;Dim names As String&lt;BR /&gt;'get external references:&lt;BR /&gt;Set oDoc = ThisApplication.ActiveDocument&lt;BR /&gt;names = ""&lt;BR /&gt;i = 1&lt;BR /&gt;For Each ref In oDoc.ReferencedOLEFileDescriptors&lt;BR /&gt;names = names &amp;amp; Chr(10) &amp;amp; Chr(13) &amp;amp; ref.DisplayName &amp;amp; " = " &amp;amp; ref.FullFileName&lt;BR /&gt;ref.Delete&lt;BR /&gt;i = i + 1&lt;BR /&gt;Next&lt;BR /&gt;MsgBox ("References:" &amp;amp; names)&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:45:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984415#M60849</guid>
      <dc:creator>KarelC</dc:creator>
      <dc:date>2016-01-12T12:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete non-existing reference in Inventor DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984425#M60850</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I looked at the ReferencedOLEFileDesscriptors, but the collection is empty. Still the reference is shown when I try to check in the file in to Vault. Because the file doesn't really exist it blocks me from checking in the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The weird thing is&amp;nbsp;that the XRef Manager in AutoCAD is showing the bitmap as unreferenced and I can remove the reference there. Therefore I added a reference to the AutoCAD Type Library in Inventor VBA allowing me to set a reference to the ContainingDWGDocument property of the DrawingDocument. In the AcadDatabase however, I am unable to find the XRef.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope there it's possible to programmatically remove the reference, because I have a lot of drawing documents which needs to be checked in to Vault.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984425#M60850</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2016-01-12T12:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete non-existing reference in Inventor DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984637#M60855</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi psaarloos,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure about using the API, but aan you use this break link tool as shown in this image?&lt;/P&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"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Autodesk Inventor Remove Image Link.PNG" alt="Autodesk Inventor Remove Image Link.PNG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/208251i31CCAB559A66D452/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:40:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984637#M60855</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2016-01-12T14:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete non-existing reference in Inventor DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984722#M60857</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your suggestion. Unfortunately the 'Links' command is disabled (probably because it can't find link).&amp;nbsp;Another weird thing though; Design Assistent is complaining about the missing reference as well. As far as I know Design Assistent is using Inventor Apprentice, but can't find the reference to the bitmap in the ApprenticeServerDocument either...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="NonExistingLink.png" alt="NonExistingLink.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/211020iF363AB42E0B79100/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 15:19:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/5984722#M60857</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2016-01-12T15:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete non-existing reference in Inventor DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/6023600#M61446</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found a solution by adding a reference to the AutoCAD Type Library from within Inventor VBA and accessing the ContainingDWGDocument object. Hoipefully it help somebody else with the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim odoc As DrawingDocument
Set odoc = ThisApplication.ActiveDocument

Dim acad As AcadDatabase
Set acad = odoc.ContainingDWGDocument

Dim removed As Boolean

On Error Resume Next

Dim acadObj As Object
For Each acadObj In acad.Dictionaries

    If TypeOf acadObj Is AcadDictionary Then
    
            If acadObj.Name = "ACAD_IMAGE_DICT" Then
                
                Dim acadImageDict As AcadDictionary
                Set acadImageDict = acadObj
                
                acadImageDict.Remove "&amp;lt;imagename&amp;gt;"
                removed = True
                 
                Exit For
                 
            End If
            
    End If
    
Next

On Error GoTo 0

If removed Then
    odoc.Update2
    odoc.Save
    ThisApplication.CommandManager.ControlDefinitions("VaultRefresh").Execute
End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 09:38:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/6023600#M61446</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2016-02-04T09:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete non-existing reference in Inventor DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/6204388#M62272</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to open dwg in Autocad type xref command and detach missing link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 12:44:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/6204388#M62272</guid>
      <dc:creator>info</dc:creator>
      <dc:date>2016-03-08T12:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete non-existing reference in Inventor DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/12044577#M154214</link>
      <description>&lt;P&gt;Having the same issue. This worked.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 16:39:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-delete-non-existing-reference-in-inventor-dwg/m-p/12044577#M154214</guid>
      <dc:creator>slmiller6Y5FH</dc:creator>
      <dc:date>2023-06-19T16:39:41Z</dc:date>
    </item>
  </channel>
</rss>

