There is a method onDocumentRestored, but I look for something that is called just before the document is saved.
The reason: I want to cleanup my object before storing because it's faster/better to recalculate some data than to store and reload them.
looking for onBeforeSave
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact: