cadquery
cadquery copied to clipboard
A python parametric CAD scripting framework based on OCCT
Hello! I am relatively new to CadQuery, and I have a question for which I have not found any good example. I am trying to create a CAD model of...
When running the following code, cadquery raises an exception: ``` import cadquery as cq test = ( cq.Workplane("XY") .circle(10) .extrude(20) .faces(">Z") .workplane() .hole(15, 5) .faces(">>Z[1]") .workplane() .hole(10, 5) ) ```...
Hey! I face a problem were I get ``` in () 9 for obj in result.objects: 10 workplane = cq.Workplane("XY").add(obj) ---> 11 extruded_objects = extruded_objects.union(workplane.wires().toPending().extrude(80).faces("+Z").shell(2)) 12 13 1 frames /usr/local/lib/python3.10/dist-packages/cadquery/occ_impl/shapes.py...
```py import cadquery as cq res = ( cq.Workplane() .box(1, 2, 3) .section(0) .findSolid() ) ``` res is a Compound (Face). Should the result instead be the Solid on the...
Based on the suggestion of @lorenzncode from #1443
`Sketch` `close()` closes an edge that is not for construction with an edge created with `forConstruction=True`. I attempted to close the triangle with itself, however, it was closed with the...
I believe I tried every combination of commands, especially around .wires(), .faces() .toPending() etc. however I am struggling to extrude a loft. Can you help me add 3D depth to...
The DXF importer at cadquery/occ_impl/importers/dxf.py tries to assemble the loaded file into faces and throws an error if this is not successful. It would be nice to be able to...
We are trying to generate multiple cuts to 'raster' basic geometries The sample code below produces inconsistent results with missing parts of the split ellipsoid ```python import cadquery as cq...
hey guys ```python import cadquery as cq # Get a face from the box (for example, the top face) top_face = segment_1.faces(">Z") # Get the edges of the face cutted_bottom...