"There are external dependencies found in the document. Please remove ..."

"There are external dependencies found in the document. Please remove ..."

cadman777
Advisor Advisor
1,431 Views
10 Replies
Message 1 of 11

"There are external dependencies found in the document. Please remove ..."

cadman777
Advisor
Advisor

Dear Sirs,

 

I'm working on my Custom Content Center and ran into an error I never saw before:

"There are external dependencies found in the document. Please remove the dependencies then proceed with this command."

 

I found the solution from a guy using 2011, but it doesn't exist in 2010 Suite:

https://forums.autodesk.com/t5/inventor-forum/external-dependencies-error-publishing-ipart/m-p/29277...

There's a "Links" command on the Options pallet on the Tools tab.

That does not exist in 2010 Suite.

The other 2 forum thread I found do not lead to any solution.

 

Will someone please tell me how to fix this problem?
I believe it has to do with a .bmp file that is connected to a Style.

I tried doing what Scott M said in another link related to Vault, but that didn't help (= Add 2 Library paths where those .bmp files are located). Note: I DO NOT USE VAULT.

 

Anyways, this is a STOP POINT in my work.

Nothing like the software getting in the way of progress!

 

Thanx ...

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes
1,432 Views
10 Replies
Replies (10)
Message 2 of 11

MechMachineMan
Advisor
Advisor

Try exposing the OLEs and deleting the unnecessary ones from the browser, as per:

 

https://forums.autodesk.com/t5/inventor-customization/how-to-remove-ole-links/td-p/7511846

 

Sub Main()
	Dim oDoc As Document
	oDoc = ThisApplication.ActiveDocument
	
	If oDoc.ReferencedOLEFileDescriptors.Count > 0
		For Each oOLEFileRef In oDoc.ReferencedOLEFileDescriptors
			oOLEFileRef.BrowserVisible = True
		Next
	End If
	
End Sub

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 11

AlexFielder
Advisor
Advisor

I can go one better:

Public Sub Main()
oleLinksDelete()
End Sub


Public Sub oleLinksDelete()
           
    ThisApplication.SilentOperation = True
     'Dim oAssyDoc As AssemblyDocument
     'Dim oPartDoc As PartDocument
     Dim oDrawingDoc As DrawingDocument
     'oPartDoc = ThisApplication.ActiveDocument
	 'oAssyDoc = ThisApplication.ActiveDocument
     oDrawingDoc = ThisApplication.ActiveDocument
     
     Dim bSaveDoc As Boolean
     bSaveDoc = False
    
     Dim oRefOleFileDesc As ReferencedOLEFileDescriptor
     'If oAssyDoc.ReferencedOLEFileDescriptors.Count > 0 Then
     'If oPartDoc.ReferencedOLEFileDescriptors.Count > 0 Then
     If oDrawingDoc.ReferencedOLEFileDescriptors.Count > 0 Then
         'For Each oRefOleFileDesc In oAssyDoc.ReferencedOLEFileDescriptors
		 'For Each oRefOleFileDesc In oPartDoc.ReferencedOLEFileDescriptors
         For Each oRefOleFileDesc In oDrawingDoc.ReferencedOLEFileDescriptors
              'Debug.Print oRefOleFileDesc.ReferenceStatus
              
              If oRefOleFileDesc.ReferenceStatus = ReferenceStatusEnum.kMissingReference Then
                  ' Debug.Print oRefOleFileDesc.DisplayName
                  oRefOleFileDesc.Delete
                  'oPartDoc.Dirty = True
                  oDrawingDoc.Dirty = True
				  'oAssyDoc.Dirty = True
                  bSaveDoc = True
              End If
            Next oRefOleFileDesc
          
         	If bSaveDoc = True Then
		  		'oAssyDoc.Save
              	'oPartDoc.Save
				oDrawingDoc.Save
            	bSaveDoc = False
          	End If
      End If
    ' Be sure to set this back to False
     ThisApplication.SilentOperation = False
End Sub

from here: https://github.com/AlexFielder/iLogic/blob/master/AddRemove/Remove%20Missing%20OLE%20Links.iLogicVb

0 Likes
Message 4 of 11

cadman777
Advisor
Advisor

Thanx for these 2 Macros!

I tried running the first Macro but it failed.

My Macro skills are beginner, so I abandoned the first Macro.

However, the 2nd Macro ran fine, and said it did the job.

But when I went back to the part and tried Publishing to the CC, the same error occurred.

 

Any other ideas?

Thanx ...

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes
Message 5 of 11

cadman777
Advisor
Advisor

Process of elimination:
The problem occurs only when the part is converted into an iPart.

Otherwise, it Publishes w/o any problems.

Any ideas what the iPart creation is doing to this part to make it not Publish to the CC w/the error it shows?

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes
Message 6 of 11

AlexFielder
Advisor
Advisor

In your OP you mentioned you thought the problem was related to a .bmp that's part of a style - can you remove the style and try again?

 

Otherwise, what does the iPart table look like; can you share a sample file?

0 Likes
Message 7 of 11

cadman777
Advisor
Advisor

Hi Alex,

 

Thanx for you input.

Find the file attached.

 

Is it possible that my .ipt template file is the source of the problem?

 

What would the iPart process do to cause this problem, when Publishing a non-iPart of the same .ipt doesn't cause problems?

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes
Message 8 of 11

AlexFielder
Advisor
Advisor

Hi @cadman777,

 

On opening that file, it's clear this is the problem (referenced) file:

This appears three times!This appears three times!

 

Once you delve into the file, it's not clear where it's missing from, so first I checked the materials in the part and all seemed fine.

 

Then I checked the Appearances in the part and saw this:

 

There are eight or nine missing the image.There are eight or nine missing the image.

I clicked on one of them to edit:

 

Lots of RED is never good.Lots of RED is never good.

 

Which leads me back to asking why you have so many appearances stored IN the file itself?

 

Did these get copied to the template file during an upgrade and then left in place by accident? (FWIW: that was one of the methods to not screw up appearance libraries during migration from one Inventor version to another- put ALL appearances in the file, upgrade the file, export appearances to the library once again.)

 

I would recommend taking a good look at the template file and why it ended up like that since those images shouldn't be "missing" if the appearances were present in the appearance library instead.

 

Cheers,

 

Alex.

0 Likes
Message 9 of 11

cadman777
Advisor
Advisor

Hi Alex,

 

Thanx for your input. The info is very helpful!

 

There's a number things going on here:

First, I don't have the "Appearances" Styles manager, b/c I'm on 2010 Suite.

Second, I always had problems with losing my materials library when reinstalling.

Don't recall what I did to solve that, but maybe that's why so many styles exist in the template?

Third, I do not know any way to check these "Appearances" in Inventor 2010. Does a way even exist?

Forth, I don't know how to purge the styles successfully, even though I used the Purge Styles command.

Fifth, I don't understand the relationship between Styles and Templates, so really can't use it effectively. Even though I've been using Inventor for almost 20 years, I haven't read anything that makes sense. The Help file sucks, and is more confusing than anything b/c the information is fragmented and not linearly explained by Dialogue Box Options. Why they waste money on creating that kind of 'Help' is beyond me.

Anyways, that's where I"m at on this.

Thanx 

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes
Message 10 of 11

AlexFielder
Advisor
Advisor

Wow, I had thought that the 2010 mention in your signature was simply a typo!

 

It certainly seems that is what you have done in terms of styles in the file you shared.

 

It’s honestly been so long since I used 2010, I can barely remember what the interface looks like, let alone what functionality it had.

 

Time for an upgrade perhaps?

0 Likes
Message 11 of 11

cadman777
Advisor
Advisor

Hi Alex,

Yeah, it's 2010.

if Adsk fixed the defects that have been ever-present in this program I would consider it.

But instead, they keep adding 'bells and whistles' in a half-arsed manner.
I refuse to pay for stuff that doesn't benefit me.

So ... I'm still on 2010.

Someone in here was kind enough to write a Macro, which I ran, and the resulting message was "Success".

But that didn't work.

Maybe this brand-new install is corrupt?
My motherboard went bad recently so I had to reinstall the program.
No errors occurred to my knowledge.

Any other ideas?

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
0 Likes