Jest Posted March 9, 2021 Posted March 9, 2021 When I want to delete a lot of selected images from drawing, I must confirm deletion for each image again.... 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. Quote
ronjonp Posted March 9, 2021 Posted March 9, 2021 I don't get that alert ..maybe it's a variable? Quote
BIGAL Posted March 10, 2021 Posted March 10, 2021 (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 March 10, 2021 by BIGAL Quote
Jest Posted March 10, 2021 Author Posted March 10, 2021 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... Quote
BIGAL Posted March 10, 2021 Posted March 10, 2021 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. Quote
Least Posted March 10, 2021 Posted March 10, 2021 (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 March 10, 2021 by Least Quote
eldon Posted March 10, 2021 Posted March 10, 2021 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. Quote
Jest Posted March 10, 2021 Author Posted March 10, 2021 I do not have Raster Design installed....just Autocad Map 3d 2021.... Quote
Least Posted March 10, 2021 Posted March 10, 2021 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? Quote
Jest Posted March 10, 2021 Author Posted March 10, 2021 Yes, I finally solved my problem. I have found settings here: https://knowledge.autodesk.com/support/autocad-map-3d/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/MAP3D-Use/files/GUID-2AE006C6-C2C9-4D47-B365-A64A21801E1E-htm.html Thanks for your advice "Least" ! Quote
Recommended Posts
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.