A forked connecting rod has a centered side-profile body, a large concave semicircular fork opening, a smaller rounded end, two symmetric...
harbor run -t gnucleus-ai/freecad-fccf3777f1harbor download gnucleus-ai/freecad-fccf3777f1Write a FreeCAD Python script to /app/answer.py that produces the
edited part described below.
This is a two-step task. First, build the base part from its description
and parameters. Then apply the edit instruction to that base to produce
the target part. Both .FCStd files are graded — the base and the
target — so the script must emit both, and each must be built through
editable PartDesign features (not a baked compound).
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 two .FCStd files next to the script:
<script_stem>_base.FCStd — the base part before the edit<script_stem>_edit.FCStd — the target part after the edit is appliedBoth output paths must be derived from __file__ at runtime; do not
hardcode them or rely on the current working directory. Only the two
files written next to the executing script are graded.
FreeCAD version: 1.1.0.
Base part description:
A centered connecting-rod body has a smaller rounded end and a large concave semicircular opening at the opposite end. Straight parallel sides connect the small end to diagonal transitions beside the large opening. The body is symmetric about its longitudinal centerline and is extruded equally to both sides of its side-profile plane. It does not yet include the transverse fork-tip arms, their pin holes, or the opposed oblong face recesses.
Base part key parameters:
Edit instruction:
Add the complete fork-tip and body-recess substructure to the centered connecting-rod body. At the two endpoints of the existing large concave semicircular opening, form a symmetric pair of transverse fork-tip arms. Each arm extends fork_arm_straight_length outward from the opening endpoint to a semicircular tip of fork_arm_width, extends fork_arm_axial_thickness from the large-opening center station toward the small end, and contains a concentric through pin hole of pin_hole_diameter. The two arms are mirror images about the rod's longitudinal centerline.
Create two identical shallow oblong recesses in the constant-width rod region, one inward from each opposed normal face. Center both on the rod centerline at slot_center_x_offset_from_small_end_arc_center from the small-end arc center. Each recess has slot_end_center_spacing between its semicircular end centers, slot_width across the rod, and slot_pocket_depth_per_face measured inward from its face, leaving an uncut central web. Keep the retained rod outline, large and small end radii, centered body thickness, and all other base dimensions unchanged.
Target key parameters:
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.