File size: 3,989 Bytes
5154c4e 3de3b50 5154c4e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | {
"id": "single-software-execution--cli--freecad-path--task-07--ubuntu",
"snapshot": "freecad-path0.21.2",
"instruction": "Work from /home/user/Desktop/variant_template.step and /home/user/Desktop/variants.json in FreeCAD Path/CAM. To use FreeCAD, run `freecad` from a terminal (use the full executable path if it is not on PATH). For this workflow, use `/usr/lib/freecad/bin/freecadcmd-python3` for FreeCAD Path command-line automation when working on `variant_template.step`.\n\nCreate one editable FreeCAD document containing five separate native Path/CAM Jobs, one for each variant in variants.json, and give each Job one native Pocket Shape operation. Each operation must use that variant's sharp nominal rectangular boundary with the stated length and width as the finished straight-wall extents, treat bottom_z as an absolute model Z coordinate in mm, and use that variant's tool_diameter; the cutter sweep may naturally leave cutter-radius internal corners. The pocket may be placed anywhere completely within the template's top face. Use T1 as the pocket tool controller in every Job with S7000 rpm and F500 mm/min for both horizontal and vertical cutting feeds. Use exactly one standard WCS fixture (G54 through G59) per Job. Use the LinuxCNC postprocessor in millimeters without overriding its preamble or postamble. In each Job, add one native FreeCAD Custom operation containing exactly `(PROGRAM NUMBER n)`, where n is that variant's program value, so the matching posted NC preserves that program number without a conflicting program-number comment. Post each NC directly from its matching Job. Save the editable document and the five posted programs using exactly these absolute file paths: /home/user/Desktop/task-07.FCStd, /home/user/Desktop/variant_01.nc, /home/user/Desktop/variant_02.nc, /home/user/Desktop/variant_03.nc, /home/user/Desktop/variant_04.nc, /home/user/Desktop/variant_05.nc.",
"source": "https://github.com/FreeCAD/FreeCAD/releases/tag/0.21.2 https://github.com/FreeCAD/FreeCAD/blob/0.21.2/src/Mod/Path/Path/Main/Job.py https://github.com/FreeCAD/FreeCAD/blob/0.21.2/src/Mod/Path/Path/Main/Stock.py https://github.com/FreeCAD/FreeCAD/blob/0.21.2/src/Mod/Path/Path/Tool/Controller.py https://github.com/FreeCAD/FreeCAD/blob/0.21.2/src/Mod/Path/Path/Op/Custom.py https://github.com/FreeCAD/FreeCAD/blob/0.21.2/src/Mod/Path/Path/Op/PocketShape.py https://github.com/FreeCAD/FreeCAD/blob/0.21.2/src/Mod/Path/Path/Post/Command.py https://github.com/FreeCAD/FreeCAD/blob/0.21.2/src/Mod/Path/Path/Post/scripts/linuxcnc_post.py",
"config": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-07/init_file/variant_template.step",
"path": "/home/user/Desktop/variant_template.step"
},
{
"local_path": "task-07/init_file/variants.json",
"path": "/home/user/Desktop/variants.json"
}
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"freecad-path"
],
"artifact_paths": [
"/home/user/Desktop/task-07.FCStd",
"/home/user/Desktop/variant_01.nc",
"/home/user/Desktop/variant_02.nc",
"/home/user/Desktop/variant_03.nc",
"/home/user/Desktop/variant_04.nc",
"/home/user/Desktop/variant_05.nc"
],
"evaluator": {
"postconfig": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-07/eval.py",
"path": "/home/user/Desktop/eval.py"
}
]
}
}
],
"func": "exact_match",
"result": {
"type": "vm_command_line",
"command": [
"/usr/bin/python3",
"/home/user/Desktop/eval.py"
],
"shell": false
},
"expected": {
"type": "rule",
"rules": {
"expected": "True\n"
}
}
},
"proxy": false,
"fixed_ip": false,
"possibility_of_env_change": "low"
}
|