An asymmetric clevis joint connector has a centered rectangular body, a large split-ring clevis at its positive-X end, a smaller fork at...
harbor run -t gnucleus-ai/freecad-fa0a1abef3harbor download gnucleus-ai/freecad-fa0a1abef3Write a FreeCAD Python script to /app/answer.py that reproduces the
part described below.
FreeCAD version: 1.1.0.
Part description:
An asymmetric clevis joint connector has a centered rectangular body, a large split-ring clevis at its positive-X end, a smaller fork at the negative-X end, and a long rounded side arm extending beyond the large clevis. Use global X along the connector, global Y across its width, and global Z through its thickness; the two ends are not mirror images.
The central body uses the listed connector_body dimensions. The large clevis is centered at clevis_arc_center_x_offset, opens toward positive X, and uses clevis_end_outer_diameter, pin_hole_diameter, clevis_slot_width_gap, and the first-clevis tangent controls for its split-ring profile. Its inner and outer circular boundaries share a center, and the pin-hole cut enters from the positive-Z face. Its Z placement is set by clevis_body_depth and clevis_body_depth_offset, and its pin-hole cut uses pin_hole_center_offset_x and pin_hole_depth. The clevis_body_depth_offset is measured from the central body's positive-Z face.
The smaller fork opens toward negative X, with its rounded center one clevis_fork_prong_straight_length inward from the body end. Its concentric prong arcs, U-shaped opening, and positive-Z projection use the corresponding clevis_fork and clevis_slot parameters. The U-shaped opening is concentric with the rounded fork end and is cut from the positive-Z face toward negative Z. clevis_fork_prong_thickness is the extrusion thickness rather than the radial wall thickness. This fork has no separate pin hole.
The long side arm lies against the front Y face and runs from clevis_arm_profile_start_x to the rounded end located by clevis_arm_end_center_x and clevis_arm_end_center_z_offset. Its profile uses the listed clevis_arm and clevis_end dimensions, and clevis_pin_hole_diameter defines a concentric hole through its rounded end parallel to global Y. The central, upper, and lower relief slots all belong to this arm: they begin at clevis_arm_profile_start_x, extend toward and open through the rounded end, and use their listed lengths, widths, transverse positions, and common slot_depth. All three relief slots enter from the positive-Z face and cut toward negative Z.
Key parameters:
connector_body_length = 75.0 mm
connector_body_width = 45.0 mm
connector_body_thickness = 12.0 mm
clevis_end_outer_diameter = 45.0 mm
pin_hole_diameter = 25.0 mm
clevis_slot_width_gap = 5.0 mm
clevis_arc_center_x_offset = 37.5 mm
clevis_body_depth = 50.0 mm
clevis_body_depth_offset = -20.0 mm
first_clevis_outer_slot_tangent_angle = 6.3793702 degrees
first_clevis_inner_slot_tangent_angle = 11.536959 degrees
first_clevis_inner_prong_tangent_x = 49.7474487 mm
first_clevis_outer_prong_tangent_x = 59.8606798 mm
pin_hole_depth = 34.5 mm
pin_hole_center_offset_x = 37.5 mm
clevis_fork_outer_arc_radius = 17.5 mm
clevis_fork_inner_arc_radius = 7.5 mm
clevis_fork_arc_central_angle = 180 degrees
clevis_fork_prong_straight_length = 15.0 mm
clevis_fork_prong_thickness = 8.0 mm
clevis_slot_arc_radius = 7.5 mm
clevis_slot_arc_central_angle = 180.0 degrees
clevis_slot_straight_length = 15.0 mm
clevis_slot_profile_width = 15.0 mm
clevis_slot_depth = 34.5 mm
clevis_pin_hole_diameter = 15.0 mm
clevis_end_arc_radius = 20.0 mm
clevis_end_arc_central_angle = 180.0 degrees
clevis_arm_length = 46.7196386 mm
clevis_arm_width = 40.0 mm
clevis_arm_depth = 45.0 mm
clevis_arm_profile_start_x = 52.9513389 mm
clevis_arm_end_center_x = 99.6709775 mm
clevis_arm_end_center_z_offset = 9.0 mm
clevis_slot_length = 74.88 mm
clevis_slot_width = 5.21 mm
clevis_slot_y_min = -2.71 mm
upper_slot_length = 72.25 mm
upper_slot_width = 6.96 mm
upper_slot_y_min = 16.3556146 mm
lower_slot_length = 73.8 mm
lower_slot_width = 10.06 mm
lower_slot_y_min = -26.4156146 mm
slot_depth = 73.6 mm
The script must build the model 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 resulting FCStd must contain named document objects whose properties drive the geometry, not a single Part::Feature holding a pre-computed TopoShape.
The grader will run freecadcmd /app/answer.py and then read both
/app/answer.py and /app/answer.FCStd for scoring. Your script
must save the FreeCAD document to /app/answer.FCStd before exiting
— e.g. doc.saveAs("/app/answer.FCStd") after doc.recompute(). The
grader does not save the document on your behalf; if
/app/answer.FCStd does not exist when freecadcmd returns, the
reward is 0.
Output location: write your script to /app/answer.py and the generated model to /app/answer.FCStd. The verifier reads from these exact paths; files saved anywhere else are not graded.
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.