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

27 REPLIES 27
SOLVED
Reply
Message 1 of 28
miles
6758 Views, 27 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

 

27 REPLIES 27
Message 2 of 28
Cadmanto
in reply to: miles

Miles,

Just a shot in the dark here, but have you tried doing a file save as copy, calling up the newly saved file and see if you can delete them in that file?

Also, what version are you running?

 

check.PNGIf this solved your issue please mark this posting "Accept as Solution".

Or if you like something that was said and it was helpful, Kudoskudos.PNG are appreciated. Thanks!!!! Smiley Very Happy

 

New EE Logo.PNG

Inventor.PNG     vault.PNG

Best Regards,
Scott McFadden
(Colossians 3:23-25)


Message 3 of 28
yannick3
in reply to: miles

Hi

Maybe you can try with manage link icon in drawing environment

 

 

manage link.JPG

Yannick Verreault
INV PRO 2015
MS Office 2007
Win 7 pro, core i7 950, asus P6T WS
nvidia Gforce GTX 295
WD caviar black 500Go
WD caviar black 1To

Message 4 of 28
miles
in reply to: yannick3

Hi to you both!

I have tried saving a copy and it reacts the same as the original.

 

The links button is greyed out on my software.

 

I am running 2014 pro.

 

Thanks

Message 5 of 28
Richard-K
in reply to: miles

A workaround I would suggest would be to 'save as' and use the .idw format. Then open this and save back as the .dwg.

 

This should remove any phantom connections as it does not transfer them to the .idw

 

Hope this helps

Message 6 of 28
scottmoyse
in reply to: Richard-K


@Kokoza wrote:

A workaround I would suggest would be to 'save as' and use the .idw format. Then open this and save back as the .dwg.

 

This should remove any phantom connections as it does not transfer them to the .idw

 

Hope this helps


Nice touch Kokoza! That worked a treat. This shouldn't be happening anyway. But what a PITA. At least this means you don't have to recreate the drawing.


Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


Design & Manufacturing Technical Services Manager at Cadpro New Zealand

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

Message 7 of 28
gavbath
in reply to: scottmoyse

I had this issue a while back and looked at the internal workings of the file through VBA and found the links.

While I could see the erroneous links, I couldn't delete them programmatically.

 

That's an awesome workaround though Kokoza! Well done.

I think I'll build an automated routine to do that.

Gavin Bath
MFG / CAM Technical Specialist
Design and Motion Blog
Facebook | Twitter | LinkedIn | YouTube


   

Message 8 of 28
gavbath
in reply to: Richard-K

Here's a very rough and ready macro that automates the process:

 

Sub Main()

    Dim doc As DrawingDocument
    Set doc = ThisApplication.ActiveDocument
    
    Dim existingfFileName 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
    Set newIdw = ThisApplication.Documents.Open(newFileName, True)
    
    Dim newDwgFileName As String
    newDwgFileName = trimmedStr & ".dwg"
    
    Call newIdw.SaveAsInventorDWG(newDwgFileName, True)
    
    Call newIdw.Close
    
    Kill (newFileName)
    
    Name existingFileName As existingFileName & ".old"
    
    Name newDwgFileName As existingFileName
    
    Dim newDwg As DrawingDocument
    Set newDwg = ThisApplication.Documents.Open(existingFileName, True)

End Sub

 

 

You'll have add it to a module in the application project. If you don't know what this is, it's probably not a good idea using this macro.

 

To use the macro:

 

1. Open the Inventor DWG

2. Run the macro

3. That's it

 

You'll end up with a new dwg with the links removed. The old bogus one is in the same folder with a ".old" extension.

 

Hope this helps someone.

Gavin Bath
MFG / CAM Technical Specialist
Design and Motion Blog
Facebook | Twitter | LinkedIn | YouTube


   

Message 9 of 28
scottmoyse
in reply to: gavbath

For anyone who wants all the steps to do this and use the macro @gavbath has written. You can take a look at this blog post, which contains a few additional details than this video:

 


Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


Design & Manufacturing Technical Services Manager at Cadpro New Zealand

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

Message 10 of 28
jamesjung
in reply to: scottmoyse

Is there a way to remove 3rd party links on a part file?

Message 11 of 28
scottmoyse
in reply to: jamesjung

Try saving as an idw, then back to DWG again.

Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


Design & Manufacturing Technical Services Manager at Cadpro New Zealand

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

Message 12 of 28
lukech
in reply to: Richard-K

Thank you so much! I have been pulling my hair out trying to fix this, and your solution worked perfectly. Thanks again

Message 13 of 28
thomas.canneaux
in reply to: lukech

Does anybody have a copy of the script used in the video, it appears to be slightly different to the one posted. I'm having problems with ghost links in inv2018.

Message 14 of 28

Hi! You should be able to go to Tools -> Link -> break link. If it does not work, it means the link may be corrupted. Please share an example here so forum experts can take a look.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 15 of 28

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.

Message 16 of 28

Hi! What Inventor release are you on? I recalled there was an issue on 2015 or earlier, which had been resolved already.

Try this and see if it helps. Copy and paste an image file with the same name to the folder. Then resolve to the new image file. Now, are you able to break the link using Link command?

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 17 of 28
t_fransman
in reply to: gavbath

the macro does not seem to work on an idw.

 Complains on this line i think it's line 15

Call doc.SaveAs(existing file name, True)

 

Can you help this is in our templates and linking our copy design together into a big list of bad ref and copy Design is almost impossible to use at this point.

Message 18 of 28
johnsonshiue
in reply to: t_fransman

Hi! Like I mentioned on the other thread, the drawing is likely corrupted. You may want to start a new one and copy the sheets from the old drawing to the new one.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 19 of 28

save inventor drawing as .idw. Reopen drawing in inventor and save as .dwg. This will remove all ghost image links.

Message 20 of 28

Tried that, even ran the macro, the macro did not work. and it did nothing. The reason was it was actually used in a sketch block. 

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

Post to forums  

Autodesk Design & Make Report