• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

copy to relative distances

itreiu

Guest
hi, I've been following you/leggo for a long time, today I would need vs help on a simple command: copy.
I should copy a (or more than one) object along the axis x several times at different distance by manually entering the value of the shift. thus making the value always refers to my first object/s selected; I would, if possible and for convenience, enter the value of the move from the last object/s copied.
I attach a banal example: I would like to insert the copy values "15, 15, 20, 12"....type "discontinuous" instead of "15, 30, 50, 62"....referred to my object/source.
I hope I've been quite clear. . .
Thank you!(y)
(acad 2024)
 

Attachments

Maybe it's not immediate but the thing you can do using the "from" option.
in practice active copy command.
make your first copy of 15, write from (the copy command is still active), select the center of the second circle and then enter the new distance of 15. repeat with 20, 12...
 
hi legs, thank you for the answer.
it is not "the definitive solution" but it is definitely better than to remake every time the copy command from scratch!
Thank you.
 
I use a system similar to that suggested by @legs , but if you have to create a copy only on x coordinates (as you described. . )
Code:
(defun c:cmrpp (/ ss p1 inc) ; = multiple copy on a line with variable distance from the previous point
(if (setq ss)
(progn)
(setq inc 0)
(while (setq d (getdist "\review for the next copy <fine>: ")
(setq inc (+ inc d))
(command "copy" ss "" (strcat (rtos inc 2 4) ",0.0000,0.0000") ; command
)
)
)
(principles)
)</fine>
tested and working on acad2024 and nanocad24.
 
Hello, I tried the solution @legs but does not work the command "from" inside copy.. .

your solution @dsw the cargo as lisp? (lock notes with .lsp extension and drag & drop in acad? )
Thank you!
 
hi, my solution can load with "appload" (reference to the guide), after charging it I use the "cmrpp" command (you can change it to your liking in the script at the location "(def c:cmrpp (/)

the script passages are simple, first make the selection of the primitives and then enter the distance to each request.
to get out of the cycle/command just send it without entering any value.
 
% 1the method is not exactly immediate but it works. You're likely to jump a few steps. when you use "from" you just have to select a new starting point. I use it quietly.
It is obvious that the solution @dsw is definitely more practical.

By the way, you may also use the mocoro command (move copy rotate).
with this you can copy your object. then press the right button (or sending or space) and he automatically moves the reference point to the newly copied object. you at this time must insert c or select copy and then enter the new distance that is now related to the last object.
 
Last edited:
% 1the method is not exactly immediate but it works. You're likely to jump a few steps. when you use "from" you just have to select a new starting point. I use it quietly.
It is obvious that the solution @dsw is definitely more practical.

By the way, you may also use the mocoro command (move copy rotate).
with this you can copy your object. then press the right button (or sending or space) and he automatically moves the reference point to the newly copied object. you at this time must insert c or select copy and then enter the new distance that is now related to the last object.
I confirm I can't do your "truck." .
copy -> selection -> I create copy -> "from" -> but I still have in selection the first objects and if I click button sx I "position" copy
 
I think I understand what that means @legs when he writes "da", he refers to the object snap

"from"
1) right mouse shift-> select osnap from the drop-down menu
2) select the new origin of departure (center, end, etc.)
3) from the distance from the new origin (you can give from keyboard with @10<0 or video)
 
I try!

edit:
the method suggested by @legs (with the explanation of @dsw) is exactly what I was looking for: selecting "from" the reference is always referred to the last copy and not to the first/point base!
thanks to both, very kind!
 
Last edited:

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top