We have an image in many of our drawings that is a remnant of on old title block. I want to put something in my Acaddoc.lsp to detach the image if it exists. My only problem is I don't know how to determine if it exists.
I put the following line in my Acaddoc.lsp:
(command "-image" "d" "BW_JR_FORMAT_B")
That works fine if the image exist but crashes if it does not. Well OK it doesn't "crash" but it displays the message Unknown command "BW_JR_FORMAT_B".
How would I search the drawing to see if the image exists and how would I put the above line of code into an IF statement?
Edit: If there is a better way to accomplish my goal I am more than willing to listen.