Book Image

FreeCAD

By : Brad Collette, Daniel Falck
Book Image

FreeCAD

By: Brad Collette, Daniel Falck

Overview of this book

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.
Table of Contents (9 chapters)

Getting and installing FreeCAD (Must know)


This recipe will describe the options available for installing FreeCAD on the three major platforms (Windows, Mac, and Linux). It will briefly cover the steps for installation of a stable release version.

Getting ready

FreeCAD is still under heavy development. Stable releases are provided periodically that are tested and debugged. These releases will lack the most current features and may not match many of the recipes described in this book.

Detailed instructions are provided on the FreeCAD site for installation on all three platforms along with removal and troubleshooting information.

How to do it...

  1. For most casual users, the stable version binaries are the best place to start learning FreeCAD.

  2. Start by visiting the FreeCAD site at http://free-cad.sourceforge.net/.

  3. The main page of the FreeCAD site has a panel with download links for the current stable release.

    • For Windows, the stable release is provided as a 32-bit Microsoft Installer application (.msi file). Download the file to your computer and double-click it to run the installation program.

    • The Linux (Ubuntu) link will direct you to a personal package archive (PPA). The packages here are for Ubuntu but should work on any recent Debian derived distribution. Both 32 and 64 bit versions are available through the PPA. Add the PPA to your repository manager and install it like any other application. FreeCAD is also available in the main Ubuntu repository, but this version is outdated and should be avoided.

    • Mac OS X (Lion) is supported with a 64-bit installer package. The installer is distributed in a disk image. Download the disk image file. Mount it and run the Install FreeCAD package. In the past, Mac OS X packaging was supported by only a small team and packages were not always up to date. OS X users are encouraged to consider building from source.

There's more...

FreeCAD's development pace is very fast. New features and improvements are appearing almost daily in the unstable and development branches of the source code. After you've explored the basics, you may wish to explore features not yet available in the stable version. Let's look at some of the other installation options.

Daily builds

If you are using Linux and are willing to accept the risk of broken features and occasional crashes, you can install one of the daily builds. These are generated automatically by build scripts each day and consequently have had no formal testing. The daily build contains the most recent features and bug fixes committed to the source code by the developers.

Daily builds aren't available for Windows but an unstable binary installer is periodically built. Download it from http://sourceforge.net/projects/free-cad/files/FreeCAD%20Windows/.

Building from source

Detailed instructions for building FreeCAD from source is beyond the scope of a How-to book, but an overview of the major steps may help:

  1. Meet the prerequisites: You'll need a compiler and all the dependency libraries. FreeCAD has a long list of dependencies and getting them all in place can be a chore. This is much easier on a Linux computer since most or all of the dependencies can be downloaded from the software manager.

    For Windows, the FreeCAD site also provides a libpack download to simplify the dependency requirements.

  2. Obtain the source code: FreeCAD source is maintained in a Git repository available at git://free-cad.git.sourceforge.net/gitroot/free-cad/free-cad.

  3. Compiling: The specifics steps for compiling vary from platform to platform but are generally simple once the source and dependencies are in place. Study the page for your platform on the FreeCAD site.

Third-party builds

The FreeCAD site also maintains a list of alternate builds. These are binary installations that are created and maintained by people and organizations outside the FreeCAD project. They may include custom features or may be optimized for specific operating systems. At the time of writing, there were third-party builds for OpenSuse, Fedora, Slackware, ArchLinux, Gentoo, and others.