A round mounting flange consists of a circular flange body with a central plain through hole and a set of equally spaced bolt holes...
Run
harbor run -t gnucleus-ai/freecad-f67dad96d1
Download
harbor download gnucleus-ai/freecad-f67dad96d1
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 round mounting flange consists of a circular flange body with a central plain through hole and a set of equally spaced bolt holes arranged on a bolt circle.
The flange body is defined by outer_diameter and flange_thickness.
The central through hole is defined by inner_diameter and runs through the flange thickness.
The bolt pattern is defined by number_bolt_holes, bolt_hole_diameter, and pitch_circle_diameter, positioning the bolt holes evenly around the flange.
Key parameters:
outer_diameter = 66.675mm
flange_thickness = 13.49375mm
pitch_circle_diameter = 53.18125mm
bolt_hole_diameter = 6.746875mm
number_bolt_holes = 4
inner_diameter = 25.4mm
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.