Jump to content

Recommended Posts

Posted

When I want to delete a lot of selected images from drawing, I must confirm deletion for each image again....

1513108865_eraseimage.JPG.79bc080d49454f8ab6f46f6123117e62.JPG
  So.....if I selected 100 items and wish to delete them, I must press Yes 100 times. There is no option to confirm deletion for all selected.
  Even cancellation is not possible. I have to hit Escape 100 times anyway....!?..strange.
 
  Is there a way (lisp or macro) to simplify and speed-up this process?

kind regards

F.

Posted

I don't get that alert ..maybe it's a variable?

Posted (edited)

Use erase message appears

 

The image is normally a XREF. You can pick 1st hold shift and select more then right click mouse and Detach.

 

I tried -xref D but does not work.

 

 

Edited by BIGAL
Posted

Yes, the images are xrefs. I know how to detach them from the xref list. I would like to know, how to detach or delete them by selecting theirs frames directly in drawing (without confirming deletion for each one), so I do not need to open xref panel and pick them from the list...

Posted

This is the erase part in a kill style.

(setq ss (ssget "x" '((0 . "IMAGE"))))
(command "erase" ss "")

There is somewhere a post about removing erased xrefs google.

Posted (edited)

I would bet that you have raster design installed?

If so you can change a setting to 'always detach' when an image is erased.

Raster Design defaults to 'ask before detaching'.

 

It used to bug me until I found this simple fix.

 

https://knowledge.autodesk.com/support/autocad-raster-design/learn-explore/caas/CloudHelp/cloudhelp/2021/ENU/AutoCAD-RasterDesign/files/GUID-87AF47BD-DC9A-449E-869B-9B9B60AD628D-htm.html#GUID-87AF47BD-DC9A-449E-869B-9B9B60AD628D

 

unref.lsp here https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/finding-loaded-and-unreferenced-images/td-p/1908251

is great for finding and unloading the unreferenced images.

Edited by Least
Posted

Instead of deleting the images, why do you not go to Image Manager, where you can choose the whole lot and detach them all in one button push.

Posted

I do not have Raster Design installed....just Autocad Map 3d 2021....

Posted
1 minute ago, Jest said:

I do not have Raster Design installed....just Autocad Map 3d 2021....

i expect there is a similar setting.  Have you looked?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...