Ceci est une ancienne révision du document !
Introduction FreeCAD has been built using the programming language Python. It should be understood that the use of modeling using the Python command line is not required. However, it can be beneficial in certain circumstances:
In this tutorial we will focus on the last of the 3 circumstances. It is our goal to design a macro that allows us to create parametrically designed pullies. The basic pulley has been chosen for it's relative simplicity. Once the overall design/programming principles are understood I would like to create macros for:
In this tutorial we will be making a very simplified version of this object:
STEP 1 - Setup FreeCAD for Python Script Building:
When we first open FreeCAD you will not have the “Vue Rapport” nor the “Python Console”. So the first step is to learn how to activate these two menus
Open the menu: Edition/Préférences/fenêtre de sortie
Next we will activate the menus for the Python Console and the Vue Rapport. To do so we must:
Step 2 - Basics
Now that we have our Python Console open we will start with the very basics. We will simply create a new document named “Python_Pulley” then:
In the Python Console we will first type: