FreeCAD: Solid Modeling with the Power of Python
Brad Collette, Daniel Falck
Format: PDF / Kindle (mobi) / ePub
Solid Modeling with the power of Python
* Packed with simple and interesting examples of python coding for the CAD world.
* Understand FreeCAD's approach to modeling and see how Python puts unprecedented power in the hands of users.
* Dive into FreeCAD and its underlying scripting language.
FreeCAD is a general purpose platform for CAD development. It can be extended to use different workbenches to solve different problems. Targeted squarely at the engineering community, FreeCAD is an open source design application built to be extended. Python, the powerful scripting language, is woven deeply into FreeCAD's DNA and gives users unprecedented power to automate and invent.
"FreeCAD [How-to]" is a lean, fast tour of FreeCAD's major workbenches and design philosophy. The reader will get a hands-on introduction to several modeling techniques and learn how Python makes macro automation and design possible.
FreeCAD allows users to design in a variety of ways; from drawing 2D designs as lines and circles to combining primitive solids into complex 3D shapes. Objects can even be created or modified by code you write in Python. FreeCAD even allows power users to extend the application itself with new dialogs, panels, and scripts. This book will not only show you how to get started using FreeCAD in a traditional GUI mode, but will teach you how to harness its powerful scripting language for more power.
What you will learn from this book
* Creating 3D solid objects with python
* 2D draft design and constraint modeling
* Turning 2D drawings into 3D objects
* Combining simple primitives into complex solids
* Recording Macros
* Creating objects with code
* Importing and exporting data
* Creating a Custom python dialog to automate a task
* Harnessing the constraints engine with python
Written in cookbook style, this book offers many recipes to create objects, import and export data, create 3D solid objects. Each recipe contains step-by-step instructions followed by analysis of what was done in each task and other useful information.
Who this book is written for
If you've been toying around with FreeCAD and want to have more control over your work flow then this book is for you.
The reader needs to have basic knowledge of modeling.
Paperback: 316 pages Build web applications for Apple iOS and Google Android touchscreen devices with this first HTML5 mobile framework 1. Learn to develop web applications that look and feel native on Apple iOS and Google Android touchscreen devices using Sencha Touch through examples 2. Design resolution-independent and graphical representations like buttons, icons, and tabs of unparalleled flexibility 3. Add custom events like tap, double tap, swipe, tap and hold, pinch, and rotate Please
position is looking down onto a plane defined by the X and Y axes. The Z axis is pointed directly at the camera. A coordinate indicator in the corner helps you orient yourself in the 3D space. 10 This material is copyright and is licensed for the sole use by on 7th October 2012 FreeCAD [How-to] 2. Click on the workbench switcher and select the Part workbench. Then click on the Create a box solid icon to insert a cube into the project. 3. You can have multiple projects open at the same time.
selected object are shown on the two tabs (View and Data). 6. Click on the Measure distance icon, and then click two points on the box in the 3D window. A dimension will be shown and a distance object will be added to the tree. 7. You can select the distance object in the tree and explore its properties. 8. As the project complexity grows, you may need to perform an action on multiple objects at the same time. Select multiple objects by holding the Ctrl key while selecting with the mouse.
it... 1. Model the bent metal plate by adding and positioning three box solids. Add the first box to the drawing, and select its node in the project tree. Switch to the Data tab and edit the properties to make it 2.5 x 50 x 50 mm (height, length, width). 2. Create a second box with the same dimensions but edit the placement to move the box 50 mm in the X direction and 10 mm in the Z direction. This will place the second cube next to the first and shifted upward. 3. Add a third cube to connect
placement and radius properties. The center hole is 22.5 mm and the small screw holes are 2.5 mm. 15 This material is copyright and is licensed for the sole use by on 7th October 2012 FreeCAD [How-to] 11. With all the solids added to the project, it should like the following image: 12. We're almost ready to subtract the cylinders and slots from our base plate, but we first need to clean things up a bit. In the project tree, select all of the cylinders and fillet objects. With all of them