CadQuery 2 Documentation
CadQuery is an intuitive, easy-to-use Python library for building parametric 3D CAD models. It has several goals:
Build models with scripts that are as close as possible to how you’d describe the object to a human, using a standard, already established programming language
Create parametric models that can be very easily customized by end users
Output high quality CAD formats like STEP, AMF and 3MF in addition to traditional STL
Provide a non-proprietary, plain text model format that can be edited and executed with only a web browser
See CadQuery in Action
This Getting Started Video will show you what CadQuery can do. Please note that the video has not been updated for CadQuery 2 and still shows CadQuery use within FreeCAD.
Quick Links
Table Of Contents
- Introduction
- Installing CadQuery
- QuickStart
- Design Principles
- Concepts
- Workplane
- Sketch
- Assemblies
- Free function API
- Visualization
- CadQuery Scripts and Object Output
- Examples
- Simple Rectangular Plate
- Plate with Hole
- An extruded prismatic solid
- Building Profiles using lines and arcs
- Moving The Current working point
- Using Point Lists
- Polygons
- Polylines
- Defining an Edge with a Spline
- Mirroring Symmetric Geometry
- Mirroring 3D Objects
- Mirroring From Faces
- Creating Workplanes on Faces
- Locating a Workplane on a vertex
- Offset Workplanes
- Copying Workplanes
- Rotated Workplanes
- Using construction Geometry
- Shelling To Create Thin features
- Making Lofts
- Extruding until a given face
- Making Counter-bored and Counter-sunk Holes
- Offsetting wires in 2D
- Rounding Corners with Fillet
- Tagging objects
- A Parametric Bearing Pillow Block
- Splitting an Object
- The Classic OCC Bottle
- A Parametric Enclosure
- Lego Brick
- Braille Example
- Panel With Various Connector Holes
- Cycloidal gear
- API Reference
- API Cheatsheet
- Selectors Reference
- CadQuery Class Summary
- Importing and Exporting Files
- The CadQuery Gateway Interface
- Extending CadQuery
- Citing