A conveyor tube support bracket consists of a uniform-wall open channel, a flush end plate, an outward-projecting mounting plate, and a row...
harbor run -t gnucleus-ai/freecad-d711a060cfharbor download gnucleus-ai/freecad-d711a060cfWrite 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 conveyor tube support base consists of a uniform-wall open channel and a flush rectangular end plate. The end plate lies at one axial end and is flush with the three inner channel walls. The channel has joined top, bottom, and closed-back walls, with the opposite side open. It does not yet include the outward-projecting mounting plate or the mounting-hole row.
Base part key parameters:
Edit instruction:
Add the mounting interface to the open-channel base. From the open-side edge of the lower channel wall, add a plate that runs the full channel_length. Keep its underside flush with the channel's lower outside surface, set its thickness to mounting_plate_thickness, and project it outward from the open side by mounting_plate_outward_projection.
In the outer face of the closed back wall, create number_of_mounting_holes equal circular through holes of mounting_hole_diameter. Place their row parallel to the channel axis, mounting_hole_row_offset_from_height_midplane above the channel height midplane. Use equal pitch and equal end-center margins, each equal to channel_length divided by number_of_mounting_holes plus one, measured from the end-plate datum. Preserve the channel walls, end plate, clear opening, and all other base 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.