Community
MTE Controls, thanks for the post. I just wanted to simply delete a block and purge it so I used your script minus the add. Now I just have to find a good quick reference guide that shows me what "ss" stands for(and other similar code) and how it's used :). It doesn't look quite as simple as entering what I normally would type if I were typing commands.
Look for AutoLisp help.
"ss" is the generic name assigned to the block and not an instruction; it is done on this line:
(setq ss (ssget "_X" '((0 . "INSERT") ( 2 . "yourblockname"))))
From the help file:
setq = Sets the value of a symbol or symbols to associated expressions
Hope this helps,
Stefan