LISP FOR COPY COMMAND

LISP FOR COPY COMMAND

krishravi2000
Enthusiast Enthusiast
823 Views
10 Replies
Message 1 of 11

LISP FOR COPY COMMAND

krishravi2000
Enthusiast
Enthusiast

Hi guys,

I need a help in lisp, I Require a lisp that copies the object or text and paste multiple times till I press enter or escape. In general I want a Lisp that does exactly what a copy (CO) command do but i dont want to change it in the acad.pgp file

0 Likes
Accepted solutions (2)
824 Views
10 Replies
Replies (10)
Message 2 of 11

Valentin_CAD
Mentor
Mentor

@krishravi2000 ,

 

Have you tried using the "Multiple" option under "Mode"?

ValentinWSP_0-1733399487914.png

 



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 3 of 11

Kent1Cooper
Consultant
Consultant

In newer versions, COPY by default does multiples, so you don't need anything.  If it isn't working that way for you, run it and after the object selection when it's asking for the base point, use the mOde option to set that to Multiple.  It will remember that.  In older versions, there's also a simple Multiple option to get it to do that within one running of the command, though it's not that way by default, and it needs to be called for each time.

Kent Cooper, AIA
0 Likes
Message 4 of 11

imadHabash
Mentor
Mentor

Hi,

You may need to check and review COPYMODE (System Variable) .

 

 

Imad Habash

EESignature

0 Likes
Message 5 of 11

krishravi2000
Enthusiast
Enthusiast

Yes sir i tried that as well 

I want use a lisp so that i can use the Lisp command C for multiple copies and autoCAD CO for single copy

0 Likes
Message 6 of 11

krishravi2000
Enthusiast
Enthusiast

The statement mention is true sir but I want two separete commands for single copy and multiple copy 

0 Likes
Message 7 of 11

krishravi2000
Enthusiast
Enthusiast

Hi sir,

I changes copymode to 1 which broughtout the Multiple option outside the mode format but the lisp I created shows "no function definition

 

(Defun c:C() (C:COPY "M")

1000256640.jpg

0 Likes
Message 8 of 11

Valentin_CAD
Mentor
Mentor
Accepted solution

@krishravi2000 ,

 

Instead of a LISP, (Don't see why you would need this, but) in the CUI create a command and use these macro:

 

Copy Single = C^C^_copymode;1; $M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),GRIP),_copy,^C^C_copy) 

ValentinWSP_0-1733402324924.png

 

 

 

 

Copy Multiple = C^C^_copymode;0; $M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),GRIP),_copy,^C^C_copy) 

 

ValentinWSP_1-1733402370793.png

 

 

This may be useful:



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 9 of 11

ВeekeeCZ
Consultant
Consultant

@krishravi2000 wrote:

Hi guys,

I need a help in lisp, I Require a lisp that copies the object or text and paste multiple times till I press enter or escape. In general I want a Lisp that does exactly what a copy (CO) command do but i dont want to change it in the acad.pgp file


 

So if you want to exactly what COPY (CO) does, so why you would need (and don't want) to make some change in PGP? 

0 Likes
Message 10 of 11

pendean
Community Legend
Community Legend
Accepted solution
0 Likes
Message 11 of 11

krishravi2000
Enthusiast
Enthusiast

copy command does single and multiple copies I was in need of lisp so that i can use lisp for multiple copies and use normal autocad command for single copy

0 Likes