Translations:Python scripting tutorial/12/en

From FreeCAD Documentation

Now our new document will be created. This is similar to pressing the New button on the toolbar. In fact most buttons in FreeCAD do nothing more than execute one or more lines of Python code. Even better, you can set an option in Edit → Preferences → Python → Macro to Show script commands in python console. This will print in the console all Python code executed when you press buttons. Very useful for learning how to reproduce actions in Python.