Jest Posted June 3, 2021 Posted June 3, 2021 My drawing contains a lot of object data tables. Many of them are not part of any object in drawing anymore. Sometimes objects was erased complete or just their object data. But those object data tables still remains on the list, when opened "Attach/Detach Object Data". I know how to delete them manually, but I am not sure, if any of objects still contains this table. I need a lisp routine to purge all those unused object data tables, that are not part of any object in drawing....or maybe, to show me objects which contains specific table. Is it possible? Quote
mhupp Posted June 3, 2021 Posted June 3, 2021 ;;----------------------------------------------------------------------------;; ;; Purge 3 Times (defun C:P3T () (setvar 'cmdecho 0) (repeat 3 (vl-cmdf "_.Purge" "A" "*" "N")) (setvar 'cmdecho 1) ) Some times one purge isn't enough to removed unused items from a drawing. Quote
Jest Posted June 4, 2021 Author Posted June 4, 2021 Sorry, but this not working. Let me explain situation again on very simple way: My drawing contains one object A with object data A1. I paste (or import) object B from the other drawing. This object contents object data B1. I don"t need this OD, so I detach data from object B. Although no object contains OD B1 and If I purged drawing 100 times, object data table B1 still remains on list (beside A1) when opened "Attach/Detach Object Data". Even if I clean drawing and delete all objects, OD tables still remains on list. I have many drawings with tenth of unused data and so OD list is very large and muddled. That is what I want to clean it. But in a large drawing I am not always sure, which OD table is really unused. I don"t want to delete OD from any object by mistake. I am afraid, there is no solution for my problem. Thanks for your try anyway.. Quote
Roy_043 Posted June 4, 2021 Posted June 4, 2021 I think the problem is specifically related to AutoCAD Map. Quote
Michiel Valcke Posted October 31, 2021 Posted October 31, 2021 You can use ade_oddeletetab to delete an entire OD table from your drawing, this will also remove all the records of that table to all the objects in your drawing. You can do this without a lisp and just type the following in your command bar: (ade_oddeletetab "tablename") https://documentation.help/AutoCAD-Map-3D-2009-AutoLISP/ade_oddeletetab.htm If you wish to keep the tables that are still in use and only remove empty records or not-used tables that will require a bit more work 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.