How to repeat the last command by command?

Hi…,

a customer needs this for a SpaceMouse key. I thought _Enter or _Repeat would do it, but don’t.

Any ideas?

Thanks

Michael
www.flexiCAD.com

Hi Michael - preceding the command (or macro) with * will run it again and again - is that what you need?

-Pascal

Hi Pascal,

I need repeating the last command by a command, like _RepeatTheLastCommand. _Enter doesn’t do it.

What does the * do?

Thanks

Michael

Hi Michael - * just keeps a command or macro going until you stop it -

*Line 0

for example. I do not know if there is an thing that will just run the last run command… I’ll poke around.

@Michael_Meyer - this tiny bit of python may help

import rhinoscriptsyntax as rs

if rs.LastCommandResult() == 0:
    rs.Command(rs.LastCommandName())

I am not sure how to make that work in the context you mention - maybe just put that in a text file, saved as Repeat.py and then use a macro in Rhino

! -RunPythonScript "Full path to py file inside double quotes"

-Pascal

1 Like

Hi Pascal,

thank you for your help. I will wait and see what the customer says.

Cheers

Michael