A gib head key is a type of machine key with a tapered end and a head that protrudes for easy removal. It is used to secure rotating...
Run
harbor run -t gnucleus-ai/freecad-28177ca409
Download
harbor download gnucleus-ai/freecad-28177ca409
Details
Revision
2
Published
Sep 3, 2026
Visibility
Public
Authors
gNucleus AI, Inc.
Content hash
Keywords
freecad
cad
parametric
geometry
python
Write a FreeCAD Python script to answer.py that reproduces the
part described below.
The model must be built 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 saved FCStd must contain named document objects
whose properties drive the geometry, not a single Part::Feature holding
a pre-computed TopoShape.
Save the generated model as an .FCStd file next to the script, using
the script stem as the output basename. The output path must be derived
from __file__ at runtime; do not hardcode the path or rely on the
current working directory. Only the FCStd written next to the executing
script file is graded.
Part description:
A gib head key is a type of machine key with a tapered end and a head that protrudes for easy removal. It is used to secure rotating elements like gears or pulleys to a shaft.
A gib head key is typically defined by its length, width, height, taper_angle, and height_with_head the dimensions of the head. These parameters ensure a precise fit and secure locking mechanism between the shaft and the rotating element.
Key parameters:
length=14.0mm (axial length of the body, measured from the head/body joint to the tapered tip)
width=4.0mm (extrusion depth and total horizontal extent of the head)
key_height=4.0mm (body height at the head/body joint)
height_with_head=7.0mm (full height including the head)
taper_angle=45 degree (angle of the head's slanted face from horizontal)
key_taper_ratio=0.01 (1:100 standard body height taper along the length)
FreeCAD version: 1.1.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.