Jump to content

Recommended Posts

Posted

Hi,

 

there is a lisp like:

 

(defun c:im ()

(command "_SOLIDEDIT" "B" "I")

)

 

but that allows you to select first the solid and then multiple objects at once to imprint the selected solid, and delete them always at the end of the command.

 

Or in better way, first select one or more than one solid at once, then select all the objects on their respective faces at once, and then delete all those objects (lines, polylines, circles, and so on) used to imprint.

 

Thanks and best regards.

 

MM

Posted

Hi Marco,

you can use directly IMPRINT in replacement of SOLIDEDIT?

 

(defun c:im ( / sol ob_imp  )
   (if
       (and
           (princ "\nSelect a 3D solid")
           (setq sol (ssget "_+.:S" '((0 . "3DSOLID"))))
           (setq sol (ssname sol 0))
           (princ "\nSelect objects to imprint")
           (setq ob_imp (ssget))
       )
       (repeat (setq n (sslength ob_imp))
           (vl-cmdf "_imprint" sol (ssname ob_imp (setq n (1- n))) "_y" "")
       )
   )
)

Posted

Hi Gian Paolo,

 

the lisp works fine!

 

I use a lot the command imprint, thus for me is very uncomfortable pass by using soliedit... body...imprint and choose each elements at once.

 

Thanks a lot!

Ciao

Marco

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...