A taper pin is a cylindrical pin with a slight taper along its length, typically used for positioning and securing components in mechanical...
Run
harbor run -t gnucleus-ai/freecad-163672a65f
Download
harbor download gnucleus-ai/freecad-163672a65f
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 taper pin is a cylindrical pin with a slight taper along its length, typically used for positioning and securing components in mechanical assemblies. It usually has a small end and a large end, with a consistent taper angle.
Key parameters for drawing a taper pin include the small_end_diameter, large_end_diameter, overall_length, and taper_angle. These dimensions ensure the pin fits snugly into a corresponding tapered hole, providing a secure and precise fit.
Key parameters:
diameter=0.6mm (small-end diameter; the radius at the start of the taper section after the rounded tip)
length=4.0mm
rounded_end_height=0.08mm (axial length of the rounded section at each end)
taper_ratio=0.02 (1:50 standard taper, slope per unit axial 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.