{ "id": "single-software-execution--cli--solidcam--task-01--windows", "snapshot": "SolidCAM-2025", "instruction": "With command line only, run the installed SOLIDWORKS CAM 2025 automation through the CAMWorks API and post-process the supplied CAM part to NC. SOLIDWORKS CAM/CAMWorks is hosted by `C:\\Program Files\\SOLIDWORKS Corp\\SOLIDWORKS\\SLDWORKS.exe`; run the native CAM automation through that installation. Input files are on the Desktop: C:\\Users\\User\\Desktop\\cam_part.sldprt, C:\\Users\\User\\Desktop\\cam_job.json, and C:\\Users\\User\\Desktop\\tools.csv. The supplied part contains a validated milling machine, feature setup, tool crib, operation setup, and stored machining operations with generated toolpaths. Do not recreate the CAM process from scratch. Do not use GUI clicks, GUI automation, FreeCAD, generic G-code generators, prebuilt helper wrappers, or manual .nc editing/copying. You may create and run your own temporary Python, PowerShell, VBScript, or C# script from the terminal, but it must call the installed CAMWorks API directly. Read cam_job.json and tools.csv, open cam_part.sldprt through the CAMWorks document API, enumerate and validate the existing CAM data, regenerate the operation plan or toolpaths only if needed, and post-process all stored operations through the installed SOLIDWORKS CAM postprocessor. Save the NC output exactly as C:\\Users\\User\\Desktop\\task-01.nc. Also save C:\\Users\\User\\Desktop\\solidcam_cli_run.json with schema_version 2, generation_policy set to regenerated or reuse_generated, the engine/API used, input/output hashes and sizes, parsed job/tool files, machine/setup/operation/toolpath census, and the main CAMWorks API calls used to open, inspect, optionally regenerate, and post-process the CAM part. The audit log serves only as a supporting consistency record; the NC program is checked independently, and the NC must be generated by the installed postprocessor.", "source": "Installed SOLIDWORKS CAM 2025 / CAMWorks API tutorial part with validated stored CAM data", "config": [ { "type": "upload_file", "parameters": { "files": [ { "local_path": "task-01/init_file/cam_part.sldprt", "path": "C:\\Users\\User\\Desktop\\cam_part.sldprt" }, { "local_path": "task-01/init_file/cam_job.json", "path": "C:\\Users\\User\\Desktop\\cam_job.json" }, { "local_path": "task-01/init_file/tools.csv", "path": "C:\\Users\\User\\Desktop\\tools.csv" } ] } } ], "trajectory": "trajectories/", "related_apps": [ "solidcam" ], "artifact_paths": [ "C:\\Users\\User\\Desktop\\solidcam_cli_run.json", "C:\\Users\\User\\Desktop\\task-01.nc" ], "evaluator": { "postconfig": [ { "type": "upload_file", "parameters": { "files": [ { "local_path": "task-01/eval.py", "path": "C:\\Users\\User\\Desktop\\eval.py" } ] } } ], "func": "exact_match", "result": { "type": "vm_command_line", "command": "python C:\\Users\\User\\Desktop\\eval.py", "shell": "true" }, "expected": { "type": "rule", "rules": { "expected": "True\n" } } }, "proxy": false, "fixed_ip": false, "possibility_of_env_change": "low" }