A disc spring with bearing flats (supporting surfaces) consists of a conical disc with a central hole, where the inner edge of the upper...
Run
harbor run -t gnucleus-ai/freecad-264ab71adf
Download
harbor download gnucleus-ai/freecad-264ab71adf
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 disc spring with bearing flats (supporting surfaces) consists of a conical disc with a central hole, where the inner edge of the upper face and the outer edge of the lower face are flattened into horizontal bearing surfaces that distribute the load evenly when the spring is compressed.
Key parameters: outside_diameter and inner_diameter define the disc's radial extent; overall_height is the full vertical extent of the cross-section (top bearing flat to bottom bearing flat); thickness_with_bearing_flat is the perpendicular distance from the slanted disc surface to the adjacent bearing flat plane (i.e., the length of the short edges in the hexagonal cross-section); cone_height is the nominal vertical rise of the slanted material centerline (= overall_height - thickness_with_bearing_flat) and represents the spring's free travel before flattening.
Key parameters:
outside_diameter=8.0mm
inner_diameter=4.2mm
overall_height=0.6mm
thickness_with_bearing_flat=0.4mm
cone_height=0.2mm
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.