Zorg Posted May 8, 2009 Posted May 8, 2009 After finding the VLISP bible on the net i've got some nice reading material sorted for the next few months and hopefully i can become more of a contributer here than a consumer. However, in the meatime i'd like to know if anyone can write me a LISP that will -purge -> 'all' and -audit -> 'y' in one hit, without promting me. Would like to set it up so the command is 'PNA' (Purge and Audit). Many thanks in advance :wink: Z Quote
Freerefill Posted May 8, 2009 Posted May 8, 2009 I believe this should work. I actually use "pall" as my "purge all" function :3 Also, I'm pretty sure this can be created as a macro, but I've no idea how. (defun c:pna( / ) (command "-purge" "a" "" "n") (command "audit" "y") ) Quote
Zorg Posted May 8, 2009 Author Posted May 8, 2009 Top stuff, i was having to do this for about 150-200 drawings. You wonderfull people at CADTutor make my life that bit more bareable. Thanks again mate. Z Quote
Lee Mac Posted May 8, 2009 Posted May 8, 2009 Also, I'm pretty sure this can be created as a macro, but I've no idea how. Macro: ^C^C-purge;a;;n;audit;y; Quote
Zorg Posted May 8, 2009 Author Posted May 8, 2009 Afteroon Lee, How do i turn this into a Macro? Can it be done with Visual Lisp? :S Z Quote
Lee Mac Posted May 8, 2009 Posted May 8, 2009 Afteroon Lee, How do i turn this into a Macro? Can it be done with Visual Lisp? :S Z You just assign it to a button - Right click on a button on any toolbar, go to Customise, Under "Commands" tab, go to User-defined Drag "User Defined Button" into the workspace and click on it. Paste the code supplied into the "Macro" box Quote
Zorg Posted May 8, 2009 Author Posted May 8, 2009 Nice Nice Nice! I Think i'll concentrate on devloping more of a whole perspective of LISPs before i dive into macros. Cheers for the info thou Z Quote
Lee Mac Posted May 8, 2009 Posted May 8, 2009 No probs - if you have any other questions, just ask Quote
David Bethel Posted May 8, 2009 Posted May 8, 2009 This might help http://www.cadtutor.net/forum/showthread.php?t=33605&highlight=purge+save+audit -David Quote
Strix Posted May 11, 2009 Posted May 11, 2009 You just assign it to a button - Right click on a button on any toolbar, go to Customise, Under "Commands" tab, go to User-defined Drag "User Defined Button" into the workspace and click on it. Paste the code supplied into the "Macro" box That's my usual method My other 'Save' button goes 'ZX, purge, save, close, open' so I can't forget to purge, and to make the whole process of working through batch edits so much quicker 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.