Jump to content

Recommended Posts

Posted

hello when executing the commands the elements are duplicated in the same place, will there be any way that does not happen? and that the command be repeated

Thank you.

 

((defun c: cr () 
(princ "\ n Copiar, & 
Girar: \ n") 
(setq ss (ssget)) 
(comando "copiar" ss "" "0" "0") (comando 
"mover" ss "" pause pause) (comando "rotar" ss "" "@" pause))

(defun c: mr () 
(princ "\ nMover, & 
Rotate: \ n") 
(setq ss (ssget)) 
(comando "Move" ss "" "0" "0") (comando 
"move" ss "" pause pause) (comando "rotar" ss "" "@" pause))

Posted
hello when executing the commands the elements are duplicated in the same place, will there be any way that does not happen? and that the command be repeated

Thank you.

 

((defun c: cr () 
(princ "\ n Copiar, & 
Girar: \ n") 
(setq ss (ssget)) 
(comando "copiar" ss "" "0" "0") (comando 
"mover" ss "" pause pause) (comando "rotar" ss "" "@" pause))

(defun c: mr () 
(princ "\ nMover, & 
Rotate: \ n") 
(setq ss (ssget)) 
(comando "Move" ss "" "0" "0") (comando 
"move" ss "" pause pause) (comando "rotar" ss "" "@" pause))

 

 

This line creates a copy in the same place

(comando "copiar" ss "" "0" "0")

This line does nothing

(comando "Move" ss "" "0" "0")

If you want to copy it should be

(comando "copiar" ss "" pause)

If you want to move it should be

(comando "move" ss "" pause)

 

 

Note only one pause is needed, and it will always work on the originally selected entities

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