A hammer-on hook-style lacing installation clip formed from a rectangular base plate with multiple functional openings. Use an explicit...
harbor run -t gnucleus-ai/freecad-06d3f63e25harbor download gnucleus-ai/freecad-06d3f63e25Write 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 hammer-on hook-style lacing installation clip starts as a centered rectangular plate of clip_base_length along X, clip_base_width along Y, and clip_base_thickness along Z. At the Y- end, paired triangular barb notches, a centered keyhole-shaped lacing slot, and a centered trapezoidal relief pass completely through X. Two narrow rectangular side slots pass through the plate thickness at the left and right X edges, start at the Y- edge, and extend toward Y+ by slot_length. The base does not yet include the larger centered arc-profiled hook opening near the Y- edge.
Base part key parameters:
Edit instruction:
Add one centered hook-shaped opening through the full plate thickness near the Y- edge. Start with a wide rectangular mouth flush with that edge, using cutout_base_width across X and cutout_base_height toward Y+. Narrow it symmetrically to a neck of cutout_slot_width and continue the neck toward Y+ until it meets a circular eye of cutout_arc_radius centered on the clip centerline at cutout_arc_center_y. Use the major circular boundary so the exposed arc between the two neck walls corresponds to cutout_arc_central_angle. Preserve the clip envelope, barb notches, lacing slot, trapezoidal relief, side slots, and all retained dimensions.
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.