TIER 3 · ASSEMBLIES·t3_05

A rectangular plate 80mm × 60mm × 8mm with a rectangular pocket milled into the top face: the pocket is 60mm × 40mm × 4mm deep and centered on the plate.

Claude Opus 4.6Zoo ML-ephantGemini 2.5 FlashGPT-5Text2CadQuery (Qwen 3B)
CADQUERY (PYTHON)SOURCE
✗ 'Workplane' object has no attribute 'cutExtrude'
import cadquery as cq

# Create the base rectangular plate
plate_length = 80
plate_width = 60
plate_height = 8

# Create the rectangular pocket dimensions
pocket_length = 60
pocket_width = 40
pocket_depth = 4

result = (
    cq.Workplane("XY")
    .box(plate_length, plate_width, plate_height)
    .faces(">Z")  # Select the top face of the plate
    .workplane()  # Create a new workplane on the top face
    .rect(pocket_length, pocket_width)  # Draw the rectangle for the pocket
    .cutExtrude(-pocket_depth)  # Cut the pocket downwards by its depth
)
COMPARE · SAME PROMPT
Claude Opus 4.6
Zoo ML-ephant
GPT-5
Text2CadQuery (Qwen 3B)