A stainless-steel screw-in cable-tie mount is a constant-thickness folded strip with two open straight legs, an S-shaped transition, a...
harbor run -t gnucleus-ai/freecad-bfd45b3eacharbor download gnucleus-ai/freecad-bfd45b3eacWrite 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 stainless-steel cable-tie mount is a constant-thickness folded strip centered across mount_width. Its side profile spans mount_body_length and contains two open straight legs, an S-shaped transition, and a closed symmetric return. All bends use retention_bend_inner_radius with the common mount_sheet_thickness; the open tips retain open_end_tip_clearance and the return ends in a straight segment of return_end_straight_length. The base does not yet include the mounting-screw through-hole in the broad mounting leg.
Base part key parameters:
Edit instruction:
Add one circular mounting-screw hole through the broad mounting leg. Center the hole across mount_width, give it mounting_screw_hole_diameter, and place its axis mounting_hole_center_distance_from_open_end from the retained nominal open edge toward the closed return. Cut completely through the leg. Preserve the folded-strip profile, all bends and clearances, and every retained dimension.
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.