Nick-H- Posted May 25, 2012 Posted May 25, 2012 Wonder if someone could make me lisp to do a task that I have been doing for last couple of hours.. when superseeding drawings at work we bind all xrefs and then purge and audi them.. is it possible to make a lisp for the routine 1.Bind All Xrefs 2.Pure All - Yes 3.Audit - Yes Would be very greatful and would come in handy just so i can do it at the click of one command instead of 3 Cheers Nick Quote
pBe Posted May 25, 2012 Posted May 25, 2012 (defun c:all nil (command "_XREF" "_BIND" "*") (repeat 4 (vla-purgeall (vla-get-activedocument (vlax-get-acad-object))) ) (command "_audit" "Y") (princ)) Quote
Nick-H- Posted May 25, 2012 Author Posted May 25, 2012 thanks. what do I have to type to get it to work etc... Quote
Nick-H- Posted May 25, 2012 Author Posted May 25, 2012 I typed 'all' if that is what your meant to do. it binds the xref but doesnt purge everything :S Quote
pBe Posted May 25, 2012 Posted May 25, 2012 command: all Hang on.. let me check here on my end... EDIT: Well, it works fine here Nick-H- ,What makes you say it doesnt purge everything? are you talking about layers/block/etc...? Purge command will only removed "UN-USED" collections and entities. Would you like to post a drawing example Quote
Nick-H- Posted May 25, 2012 Author Posted May 25, 2012 Sorry my bad, it does purge all things the only things that were left were a couple of bad layers and table styles cheers Quote
pBe Posted May 25, 2012 Posted May 25, 2012 Sorry my bad, it does purge all things the only things that were left were a couple of bad layers and table styles cheers Cool beans Glad it work for you Nick-H- Quote
Lee Mac Posted May 27, 2012 Posted May 27, 2012 Be aware that the PurgeAll method will overlook MLeader Styles 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.