Hi,
I am just trying to get a grasp of CadQuery, so hopefully this is not a stupid question.
Trying
to replicate a workflow that I do in parametric CAD (Onshape, FreeCAD
etc.) all the time, I wanted to do the following:
- Create a constraint-based sketch Sketch 1 as demonstrated in the documentation, including some construction geometry.
- Create a second sketch Sketch 2 on a workplane that is offset from Sketch 1 by a certain distance.
- Project some of the geometry from Sketch 1 into Sketch 2.
- Create a loft between the two sketches.
Steps
1 and 2 are easy enough following the documentation, but how would I do
Step 3? I have two ideas, but I couldn't figure out how to do either of
those:
- Just refer to the sketch elements by their
tags and somehow include or project them into Sketch 2 directly. – or,
if that is not possible:
- Refer to the sketch elements from
Sketch 1 by their tags, extract the coordinates after solving the
constraints, and construct matching elements in Sketch 2.
Is any one of these possible in CadQuery?
Thanks!
Lap Joint