Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
wiki:tutoriels:freecad_python_script_building [2016/12/06 14:14] royce créée |
wiki:tutoriels:freecad_python_script_building [2020/10/05 14:39] (Version actuelle) |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | **Introduction** | ||
| | ||
Ligne 12: | Ligne 13: | ||
*Screw drives | *Screw drives | ||
- | Setup FreeCAD for Python Script Building: | + | In this tutorial we will be making a very simplified version of this object: |
+ | {{ : | ||
+ | |||
+ | **STEP 1 - Setup FreeCAD for Python Script Building:** | ||
{{ : | {{ : | ||
Ligne 31: | Ligne 36: | ||
*Select "Vue Combinée" | *Select "Vue Combinée" | ||
*Select " | *Select " | ||
+ | |||
+ | **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 " | ||
+ | |||
+ | * Create two cylinders of a diameter = D with a thickness = T | ||
+ | * Space them apart along the xy plane with a distance =d | ||
+ | * Create a third cylinder with a thickness =d and a diameter< | ||
+ | * Merge all objects together to create our pulley | ||
+ | * Create a final cylinder with the " | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | In the Python Console we will first type: | ||
+ | * doc = FreeCAD.newDocument(" | ||
+ | * this is the equivalent of using the GUI : fichier/ | ||
+ | |||