I play with sketches to get invalid configurations and roll back (undo) to the last version.
this works sometimes but not always.
Should undo/redo work in Sketch edit mode ? Then there are some bugs .
Otherwise i wonder what are ways to roll back from a corrupt sketch?
Is there a python method to paste and copy the whole sketch?
Is there a python way to get more information what causes the error in a sketch recalculation?
Sketcher transactions
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Sketcher transactions
Undo should work.
Could you please describe step-by-step procedure of a failing undo?
Could you please describe step-by-step procedure of a failing undo?
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Sketcher transactions
Yes, then I will look how to track the failures.DeepSOIC wrote:Undo should work.
Could you please describe step-by-step procedure of a failing undo?
Re: Sketcher transactions
Problems may occur when undoing/redoing changes while in edit mode. There are apparently some actions that don't reopen a new transaction after a change was committed.
Here a harmless issue:
Here a harmless issue:
- add a line
- create a length constraint
- move the length constraint
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Sketcher transactions
Can i look from python into the transaction stack?wmayer wrote: When looking in the undo stack there is a transaction for the move of the constraint but when undoing it the constraint doesn't move back.
Does it make sense to leave the edit mode and reenter it after every change?
Re: Sketcher transactions
Can i look from python into the transaction stack?
Code: Select all
App.ActiveDocument.UndoNames
No! This will make it quite inefficient.Does it make sense to leave the edit mode and reenter it after every change?