Lee Mac Posted August 22, 2013 Posted August 22, 2013 Ugh... I feel so out of it. It's been a year since I've even touched a program, and now I'm doing it while multitasking with sleep deprivation! I know how you feel - there are some programming tasks that I do very rarely and always find myself having to re-learn everything all over again... To save you some time in reading up on AutoLISP & Scripts just for this task, you could use my free Script Writer program which will do most of the automation for you. Instructions: Save my DeleteBlocksV1-0.lsp file to your AutoCAD Support Path. Copy the drawings to be processed to a new temporary folder so that you are working with copies (always recommended when batch processing!). In a new blank drawing, load & run my Script Writer program. For the 'Script Line', type the following (change the highlighted block names to suit): _.open *file* (load "DeleteBlocksV1-0.lsp" nil) (if LM:DeleteBlocks (LM:DeleteBlocks (LM:acdoc) '([highlight]"Block1" "Block2" "Block3"[/highlight]))) _.qsave _.close Select the temporary folder of drawings to be processed. Run the Script. I hope this helps - if you get stuck, just ask. 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.