

#Freecad python scripting code
There are two ways to write Python code in FreeCAD. Redirect internal Python errors to report view.Redirect internal Python output to report view.

If you are totally new to Python and want to understand how it works, we also have a basic introduction to Python.īefore proceeding with Python scripting, go to Edit → Preferences → General → Output window and check two boxes: In this tutorial, we'll work on a couple of basic examples to get you started, but there is much more documentation about Python scripting available on this wiki.

It is open-source and multi-platform, and can be used for many purposes: from simple shell scripts to very complex programs. Python is a programming language that it relatively easy to learn and understand.
