55 lines
1.9 KiB
ReStructuredText
55 lines
1.9 KiB
ReStructuredText
![]() |
.. _installation:
|
||
|
|
||
|
Installing CadQuery
|
||
|
===================================
|
||
|
|
||
|
CadQuery is based on `FreeCAD <http://sourceforge.net/apps/mediawiki/free-cad/index.php?title=Main_Page>`_,
|
||
|
which is turn based on the open-source `OpenCascade <http://www.opencascade.com/>`_ modelling kernel.
|
||
|
|
||
|
Prerequisites--FreeCAD and Python 2.6 or 2.7
|
||
|
----------------------------------------------
|
||
|
CadQuery requires FreeCAD and Python version 2.6.x or 2.7.x *Python 3.x is NOT supported*
|
||
|
|
||
|
Ubuntu Command Line Installation
|
||
|
------------------------------------------
|
||
|
|
||
|
On Ubuntu, you can type::
|
||
|
|
||
|
sudo apt-get install -y freecad freecad-doc
|
||
|
pip install cadquery
|
||
|
|
||
|
Installation: Other Platforms
|
||
|
------------------------------------------
|
||
|
|
||
|
1. Install FreeCAD using the appropriate installer for your platform, on `www.freecadweb.org <http://www.freecadweb.org/wiki/?title=Download>`_
|
||
|
2. pip install cadquery
|
||
|
|
||
|
|
||
|
Test Your Installation
|
||
|
------------------------
|
||
|
|
||
|
If all has gone well, you can open a command line/prompt, and type::
|
||
|
|
||
|
$python
|
||
|
$import cadquery
|
||
|
$cadquery.Workplane('XY').box(1,2,3).toSvg()
|
||
|
|
||
|
Adding a Nicer GUI via the cadquery-freecad-module
|
||
|
--------------------------------------------------------
|
||
|
|
||
|
If you prefer to have a GUI available, your best option is to use
|
||
|
the `The CadQuery Freecad Module <https://github.com/jmwright/cadquery-freecad-module>`_.
|
||
|
|
||
|
Simply extract cadquery-freecad-module into your FreeCAD installation. You'll end up
|
||
|
with a cadquery workbench that allows you to interactively run scripts, and then see the results in the FreeCAD GUI
|
||
|
|
||
|
Zero Step Install
|
||
|
-------------------------------------------------
|
||
|
|
||
|
If you would like to use cadquery with no installation all, you can
|
||
|
use `ParametricParts.com <https://www.parametricparts.com>`_, a web-based platform that runs cadQuery scripts
|
||
|
|
||
|
It is free, and allows running and viewing cadquery scripts in your web browser or mobile phone
|
||
|
|
||
|
|