Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Remove Image Links to DWG

28 REPLIES 28
SOLVED
Reply
Message 1 of 29
Anonymous
7613 Views, 28 Replies

Remove Image Links to DWG

Hi,

I have a DWG with some links to images on.  I would like to remove these links but am having a bit of a hard time.

See attached screenshot of the missing images.

I have tried to use 2 different macro's to remove these but it appears these are not OLE objects (which the macro's remove).

There is no delete menu item when you right click on the image like either.

Thanks

 

28 REPLIES 28
Message 21 of 29
t_fransman
in reply to: johnsonshiue

Also it is actually in their drawing templates. I can remove the sketch block that contains it and see if that helps. 

Message 22 of 29
HAFA12
in reply to: Anonymous


@Anonymous wrote:

This appears to be a common problem after doing a bit of googling on the subject. I can't check in a drawing to Vault as it as there were images within the drawing border which even though they have been deleted from the drawing appear to linger on as ghost links and stop the drawing from being checked into vault. Additionally the tools links option is greyed out.


 

Ran into the same problem and fixed it like this:

-Open Inventor DWG with Autocad

-Open the xref manager with XREF command and break/delete links

-Save

 

Had it occure too with images that had been removed from the file already but left some broken links behind.

Message 23 of 29
t_fransman
in reply to: t_fransman

Sadly this did not fix the problem, i  ven removed that embedding and purged. Still no effect on copy design. It refs all kinds of random stuff and took 1hr 15 min to Copy Design.

Message 24 of 29
t_fransman
in reply to: t_fransman

How Do i elevate this and get some actual help. Someone to screen share from Autodesk, and fix this issue. 

Message 25 of 29
t_fransman
in reply to: t_fransman

UPDATE:   I have singled out the issue with a part that was a label. The weird thing is that the label was done the correct way and does not have a linked part or a ghost link. The other weird thing is it just a little image on our drawings, a base view of that label if you will. Anyway if remove the part from any of the drawings the vault no longer sees the 1,000,000 million refs in the copy design interface and my copy design processes now takes less than a minute. I still could use help figuring out what the heck is wrong with these labels/stickers.

Message 26 of 29
Anonymous
in reply to: Anonymous

Thanks for this, with a small bit of work I now have it working for my VB.Net application. I'm now going to create a iteration to do this on the 1000 dwg's that I cant get into vault. Whish me luck!

 

Here is the code for vb.net:

 

Sub DeleteGohstedRefsBySavivngTo_Idw_ThenBackTo_DWG()

Try
oApp.SilentOperation = True

Dim doc As DrawingDocument
doc = oApp.ActiveDocument

Dim existingFileName As String = ""
existingFileName = doc.FullFileName

Dim trimmedStr As String
trimmedStr = Left(existingFileName, Len(existingFileName) - 3)

Dim newFileName As String
newFileName = trimmedStr & "idw"

Call doc.SaveAs(newFileName, True)

Call doc.Close()

Dim newIdw As DrawingDocument
newIdw = oApp.Documents.Open(newFileName, True)

Dim newDwgFileName As String
newDwgFileName = trimmedStr & "dwg"

Call newIdw.SaveAsInventorDWG(newDwgFileName, True)

Call newIdw.Close()

Kill(newFileName)

'Dim Name existingFileName As existingFileName & ".old"
'Name newDwgFileName As existingFileName

Dim newDwg As DrawingDocument = Nothing
newDwg = oApp.Documents.Open(existingFileName, True)
Catch
oApp.SilentOperation = False
Finally
oApp.SilentOperation = False
End Try

End Sub

Message 27 of 29
BDCollett
in reply to: johnsonshiue

 

@Anonymous 

 

I wish I had seen this thread earlier. Searching didn't really find it easily.

How did you get on making it work on a batch.

I have ~5000 DWG files I need to get into vault, currently I have remapped a lot of the references with ACad reference manager and it then allows Vault to check-in but removing them would be better.

 

I had a ACad script to remove them but it didn't seem to work for every DWG.

 

I have similar issues with Parts with all sorts of lost references to network locations or just corruptions like the DWG.

 

Message 28 of 29
t_fransman
in reply to: Anonymous

Sorry only had one single file issue

Message 29 of 29

So its now 2024, I have the same problem.when importing drawings into cault.
But thanks! your advise has solved it.
In general it not wise to have different file extensions in one system Autodesk is the prove off that to my opinion.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report