FreeCAD Part Scripting in Python Episode 025

Description: Design an enclosure for lighting controller. Software toolchain includes: Notepad++, FreeCAD, CURA, and Repetier-Server controlling a MakerGear M2e. FreeCAD has a dimensional-accurate parametric modeler driven by python code which is helpful for iterative design and modifications. We walk through the python code to design our FreeCAD 3D model starting with simple python statements and evolving to a scalable, repeatable structure using a wide range of Python capabilities such as lists, dictionaries, for-loops, if-then-else conditional statements, custom classes and even Bezier curves. #led #3dprinting #digitalelectronics 00:00 Code, Design, Slice, 3D Print 00:53 FreeCAD for 3D object design 02:54 Notepad++ for writing Python code 03:32 Required Python libraries for FreeCAD 04:22 Orientation in 3D space 04:56 Simple box using Part.makeBox() 07:23 FreeCAD Python statements to streamline design 09:54 Accommodating for the thickness of extruded plastic 11:03 Subtraction using Shape.cut() 13:00 Object transparency 15:27 Simple cylinder using Part.makeCylinder() 17:12 Union using Shape.fuse() 19:06 Custom Python classes 21:38 Custom box class using Part primitives and a Python list 22:29 Referencing existing objects created with the custom classes 25:56 Custom cylinder class using Part primitives 30:33 Python variables 31:15 Python dictionaries 35:29 Python for-loops 36:55 Python optional parameters 37:54 Rounded corners using Bezier curves 39:12 Multiple FreeCAD objects in a single project 41:13 N-sided polygon pocket for a hex nut 45:15 Designing for 3D printer shortcomings 50:37 Python if-then-else conditional statements Helpful FreeCAD resources: https://freecad.org https://wiki.freecad.org/Power_users_hub https://wiki.freecad.org/Topological_... Song: Rogers & Dean - Bloodpressure (feat. Amvis) [NCS Release] Music provided by NoCopyrightSounds Free Download/Stream: http://ncs.io/Bloodpressure Watch: Rogers & Dean - Bloodpressure (feat. Amvis) [NCS Release] The BetterEnlightened journey; all episodes in order (YouTube playlist):    • A Journey to Better Enlightenment   Arif K. Rafiq's professional GIS in Civil Infrastructure content:    • Transportation   GIS in Civil Infrastructure at Esri Canada: https://resources.esri.ca/transportation Speaking inquires: https://temperedoptimism.com LinkedIn:   / rafiqtransport