A T-shaped connector consists of a flat rectangular cross plate joined to a narrower rectangular stem that projects normally from the plate...
Run
harbor run -t gnucleus-ai/freecad-fa435b60b2
Download
harbor download gnucleus-ai/freecad-fa435b60b2
Details
Revision
1
Published
Sep 17, 2026
Visibility
Public
Authors
gNucleus AI, Inc.
Content hash
Keywords
freecad
cad
parametric
geometry
python
Write a FreeCAD Python script to /app/answer.py that reproduces the
part described below.
FreeCAD version: 1.1.0.
Part description:
A T-shaped connector consists of a flat rectangular cross plate joined to a narrower rectangular stem that projects normally from the plate underside. The plate uses connector_plate_width, connector_plate_length, and connector_plate_thickness. The stem uses connector_stem_width and connector_stem_length in the plate plane and projects by connector_stem_thickness. It is centered along the plate length, while connector_stem_center_offset_across_plate locates its center across the plate width.
An obround mounting slot passes completely through the stem side-to-side. Its long axis follows the stem projection direction, and its midpoint lies mounting_slot_center_depth_below_plate from the plate underside. The slot has semicircular ends of mounting_slot_end_arc_radius joined by parallel straight sides; the two end centers are separated by one end diameter.
Key parameters:
connector_plate_width = 3.5 mm
connector_plate_length = 6.0 mm
connector_plate_thickness = 2.0 mm
connector_stem_width = 0.5 mm
connector_stem_length = 2.5 mm
connector_stem_thickness = 5.0 mm
connector_stem_center_offset_across_plate = 1.3 mm
mounting_slot_center_depth_below_plate = 3.2 mm
mounting_slot_end_arc_radius = 0.5 mm
The script must build the model as a parametric feature tree inside a
single PartDesign Body, producing exactly one solid body. Use editable
PartDesign features to construct the model for better parameterization.
The resulting FCStd must contain named document objects whose properties
drive the geometry, not a single Part::Feature holding a pre-computed
TopoShape.
The grader will run freecadcmd /app/answer.py and then read both
/app/answer.py and /app/answer.FCStd for scoring. Your script
must save the FreeCAD document to /app/answer.FCStd before exiting
— e.g. doc.saveAs("/app/answer.FCStd") after doc.recompute(). The
grader does not save the document on your behalf; if
/app/answer.FCStd does not exist when freecadcmd returns, the
reward is 0.
Output location: write your script to /app/answer.py and the generated model to /app/answer.FCStd. The verifier reads from these exact paths; files saved anywhere else are not graded.
Scope: Solve only the CAD task described above. Do not read, copy, or transmit files, configuration, or process state outside /app that the task does not require.