Jump to content

Detach all images if there is (In a lisp)


Recommended Posts

Posted

Hi, I've found this line that delete all images but it doesn't work well in a lisp if there's no image in the drawing.

 

(command "_.image" "_detach" "*")

 

I need someone to modify this line so that If there's images, delete them, else do nothing ?

 

Thanks ! :)

Posted

Maybe ....

 

(if (ssget "_x" '((0 . "IMAGE")))
 (command "_.-image" "_detach" "*")
)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...