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
Solved! Go to Solution.
Also it is actually in their drawing templates. I can remove the sketch block that contains it and see if that helps.
@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.
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.
How Do i elevate this and get some actual help. Someone to screen share from Autodesk, and fix this issue.
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.
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
@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.
Can't find what you're looking for? Ask the community or share your knowledge.