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
7609 Views, 28 Replies

Remove Image Links to DWG

Anonymous
Not applicable

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

 

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 2 of 29
Cadmanto
in reply to: Anonymous

Cadmanto
Mentor
Mentor

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)


0 Likes

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 29
yannick3
in reply to: Anonymous

yannick3
Collaborator
Collaborator

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

0 Likes

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 29
Anonymous
in reply to: yannick3

Anonymous
Not applicable

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

0 Likes

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 29
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Accepted solution

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

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 29
scottmoyse
in reply to: Anonymous

scottmoyse
Mentor
Mentor

@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


RevOps Strategy Manager at Toolpath. New Zealand based.

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


@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


RevOps Strategy Manager at Toolpath. New Zealand based.

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

Message 7 of 29
gavbath
in reply to: scottmoyse

gavbath
Collaborator
Collaborator

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


   

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 29
gavbath
in reply to: Anonymous

gavbath
Collaborator
Collaborator

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


   

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 29
scottmoyse
in reply to: gavbath

scottmoyse
Mentor
Mentor

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


RevOps Strategy Manager at Toolpath. New Zealand based.

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

0 Likes

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


RevOps Strategy Manager at Toolpath. New Zealand based.

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

Message 10 of 29
jamesjung
in reply to: scottmoyse

jamesjung
Participant
Participant

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

0 Likes

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

Message 11 of 29
scottmoyse
in reply to: jamesjung

scottmoyse
Mentor
Mentor
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


RevOps Strategy Manager at Toolpath. New Zealand based.

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

0 Likes

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


RevOps Strategy Manager at Toolpath. New Zealand based.

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

Message 12 of 29
Anonymous
in reply to: Anonymous

Anonymous
Not applicable

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

0 Likes

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 29
Anonymous
in reply to: Anonymous

Anonymous
Not applicable

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.

0 Likes

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 29
johnsonshiue
in reply to: Anonymous

johnsonshiue
Community Manager
Community Manager

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
0 Likes

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 29
Anonymous
in reply to: johnsonshiue

Anonymous
Not applicable

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.

0 Likes

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 29
johnsonshiue
in reply to: Anonymous

johnsonshiue
Community Manager
Community Manager

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
0 Likes

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 29
t_fransman
in reply to: gavbath

t_fransman
Advocate
Advocate

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.

0 Likes

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 29
johnsonshiue
in reply to: t_fransman

johnsonshiue
Community Manager
Community Manager

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
0 Likes

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 29
Anonymous
in reply to: johnsonshiue

Anonymous
Not applicable

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

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

Message 20 of 29
t_fransman
in reply to: Anonymous

t_fransman
Advocate
Advocate

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. 

0 Likes

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