Selecting the face of a small object on top of the stack #1942
Answered
by
adam-urbanczyk
ervandarnell
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
adam-urbanczyk
Nov 22, 2025
Replies: 1 comment 5 replies
-
|
With the current API I'd do it like so: import cadquery as cq
res = (
cq.Workplane()
.box(5,5,1, centered=(1,1,0))
.faces(">Z")
.workplane()
.center(-1,0)
.box(2,2,2, centered=(1,1,0))
.faces(">Z").siblings('Edge').faces('>X').workplane(centerOption='CenterOfMass')
.box(1,1,1, centered=(1,1,0))
) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment










Could you define your use case concisely, preferably with a single (formatted) minimal example?
In the meantime, AFAICT you want to add a shape on multiple locations. The canonical way (using the Workplane API) of doing so would be more or less this: