Write console output to file

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
jelias
Posts: 2
Joined: Tue May 06, 2014 4:15 pm

Write console output to file

Post by jelias »

Hi,

I would like to write everything that is output to the python console during a FreeCAD session to a file (and I do not want to copy the text from the console window). In this way, if FreeCAD crashes I could just rerun the content of the file as a macro. Or I could use the file as a starting point for writing my own functionallity.

Any ideas or are there other solutions?

Thanks
User avatar
rockn
Veteran
Posts: 1791
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Write console output to file

Post by rockn »

Hi jelias,
Do you know the macro recording feature of FreeCAD ?
You can find it under Macro ==> Recording macro... It make a macro for freecad, it's just a python script whith the output of python console, and you can edit it.
Don't know if the file is saved automaticaly if FreeCAD crash...
Formations - Assistance - Développement : https://freecad-france.com
jelias
Posts: 2
Joined: Tue May 06, 2014 4:15 pm

Re: Write console output to file

Post by jelias »

Thank you, I will look into that.
Post Reply