Create a shortcut for copy

Hello,

I would like to create a shortcut that allows copying with “from last point use last distance use same direction”.

Thank you very much.

I know it’s really easy but dont know how

I have the following under an alias (I use ddd):

_FromLastPoint=_Yes _UseLastDistance=_Yes _UseLastDirection=_Yes

Start the Copy command, make the first copy to set the values, then type the alias plus Enter and continue to set as many other copies as you want.

it doesnt work :confused:

i would like to create one command to do all this in one shotcut without having to say yes to each parameter :confused:

Sorry, it works fine here. What does your command history say when you run it?

when i do copy and i do a copy then i do your aliasses it say the following :

Command: Copy
Command: _FromLastPoint=_Yes
Unknown command: _FromLastPoint=_Yes

this two aliasses doesnt work i dont understand why. Because i think its why you were saying
Screenshot 2024-10-22 at 23.23.36
Screenshot 2024-10-22 at 23.23.30

Well, you maybe need to think about how this actually works. You have to run the Copy command, select one or more objects, set a first point to copy from, set a second point to copy to, and ONLY THEN can you tell Rhino to use the last point/distance/direction… right? The first copy tells Rhino what those things are so that they can be repeated.

Let’s look at your first macro:

! _Copy _FromLastPoint=_Yes _UseLastDistance=_Yes _UseLastDirection=_Yes

Problem is, there is no provision for selecting the objects nor for setting the first two points. You need to use the command _Pause to tell Rhino to stop and let you do something on-screen. And, you need one Pause to select the objects, a second one to set the first point and a third one to set the second point. So the macro looks like this:

! _Copy _Pause _Pause _Pause _FromLastPoint=_Yes _UseLastDistance=_Yes _UseLastDirection=_Yes

Try it.

Now as to the second macro, it is designed to be used only once one has started the normal Copy command and set the first two points - to be used via an alias instead of having to click three command line options.

https://wiki.mcneel.com/rhino/basicmacros

The topic caught my attention. Can you show a video of what this command does?

Hi Julien -

Mitch pointed you to his excellent wiki page on everything you need to know about macros.
Specifically why your second macro doesn’t work is the use of the exclamation point at the start. This cancels any command that is currently running and, thus, the command options in your CC alias aren’t being fed to the Copy command.
-wim

Oh, yeah, didn’t catch that, thanks @wim.