CauldronDevelopmentLLC / CAMotics

Open-Source Simulation & Computer Aided Machining - A 3-axis CNC GCode simulator
Other
602 stars 138 forks source link

Is it possible to run interactively with the Python API? (line-by-line) #392

Closed nikcleju closed 1 year ago

nikcleju commented 1 year ago

Using the Python API, is it possible to run a simulation step-by-step?

Something like this:

jcoffland commented 1 year ago

Yes, but it would be slow. You can also control the simulation but time. So you could step forward one second at a time then regenerate the surface and inspect it. I don't have a full example of this but here's a start: https://github.com/CauldronDevelopmentLLC/CAMotics/blob/master/examples/python/camotics_python_example.py