A round magnetic-back cable-tie mount with a thin perimeter lip, a tapered annular body, an internal shelf, and two opposed rectangular...
harbor run -t gnucleus-ai/freecad-ba3c3feff4harbor download gnucleus-ai/freecad-ba3c3feff4Write 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 round magnetic-back cable-tie mount has a thin perimeter lip, a gently tapered lower annular body, an upper annular wall, and an internal shelf. Heights are measured upward from the bottom face. The lower taper transitions between lower_body_taper_base_diameter and lower_body_top_diameter, while the upper inner and outer walls continue to top_surface_outer_diameter and inner_shelf_diameter through smooth tangent blends. The base does not yet include the two opposed blind cable-tie pockets in its flat top face.
Base part key parameters:
Edit instruction:
Cut two equal rectangular blind cable-tie pockets downward from the retained flat top face. Give each pocket clip_slot_length and clip_slot_width, with depth clip_slot_pocket_depth. Center both across the mount and place them symmetrically along the perpendicular in-plane direction, with their centers at unsigned distance clip_slot_center_offset from the mount center. Preserve the lip, tapered annular body, blended upper walls, internal shelf, 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.