Repeating last command

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
mrcshh
Posts: 18
Joined: Tue Dec 23, 2014 5:32 pm

Repeating last command

Post by mrcshh »

Can I repeat the last command? I mean like in Rhino where you can select _Line once and for subsequent lines you simply press ENTER.
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Repeating last command

Post by wmayer »

No, this is not possible in FreeCAD.
mrcshh
Posts: 18
Joined: Tue Dec 23, 2014 5:32 pm

Re: Repeating last command

Post by mrcshh »

Ok, thanks. I am not using it too often anyway, but I was afraid of missing something.
mario52
Veteran
Posts: 4698
Joined: Wed May 16, 2012 2:13 pm

Re: Repeating last command

Post by mario52 »

hi welcome
Try this macro Macro_CloneConvert to make a copy or clone of a selected object
if you want a copy without modifcation just click OK as long as you want
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Repeating last command

Post by yorik »

I've been thinking about that too already... Werner, do you think there is a place where we could catch and save the name of commands being issued? Maybe in Gui/Command.cpp in Command:invoke()? Then it would be a piece of cake to add a new command that re-runs the stored command name... But I'm not really sure how/where to store that command name? Any suggestion?
User avatar
r-frank
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Repeating last command

Post by r-frank »

Yorik, what about this idea:
Right-Clicking in the 3D-View would give you the "re-run last command"-command in the menu.

Or if you really want to place it in a FreeCAD-menu, the Edit-Menu in the top row is always present ...

Roland
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Repeating last command

Post by yorik »

r-frank wrote:Yorik, what about this idea:
Right-Clicking in the 3D-View would give you the "re-run last command"-command in the menu.
Or if you really want to place it in a FreeCAD-menu, the Edit-Menu in the top row is always present ...
Roland
Yes, once we have the last command saved somewhere, all this can be possible...
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Repeating last command

Post by saso »

But for real, this should be a keyboard shortcut (space, enter,...) there is already to much unnecessary clicking.
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Repeating last command

Post by wmayer »

Getting the command name is easy but the problematic part are the prerequisites in order to run a command, e.g. the selection or commands like padding or pocketing.
The repeat command might be useful for creating new objects with no dependency to any other object but making all the other commands repeatable could lead to many problems.

Instead of having a repeat command the commands which a worth can be changed that way that they don't exit automatically but stay active as long as the user exits it manually.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Repeating last command

Post by NormandC »

wmayer wrote:Instead of having a repeat command the commands which a worth can be changed that way that they don't exit automatically but stay active as long as the user exits it manually.
+1 I've been advocating that for a long time.

For example, issue #1518
Post Reply