Re:FreeCAD Simulator
by app4soft on Sunday November 15, 2020 @02:13AM
(#25099013)
Rob Miles posted announcement[0,1] of rolling out sources of "FreeCAD Simulator":
> I’ve made this horrible hack to make it easier to debug my Python macros that run inside FreeCAD and design little boxes. It means that I can use all the lovely debugging features of Visual Studio Code to find out why my code don’t work. The hack takes the form of a few simple Python objects that fake part of the FreeCAD ones and allows your macros to run in any Python environment you fancy.
> If you like the idea of writing Python code that produces physical artefacts you might want to take a look at it.
FTR, There are amany interesting articles covering FreeCAD use for 3D Printing on Rob Miles' blog.[2,3]
Re:FreeCAD Simulator
by rurban on Monday November 16, 2020 @07:59AM
(#25111065)
In my naive opinion it would have been much easier to integrate the python debugger into FreeCAD proper. No need for mocking everything, you get the real values not fake ones. And this also does not scale. FreeCAD is constantly expanded.
> I’ve made this horrible hack to make it easier to debug my Python macros that run inside FreeCAD and design little boxes. It means that I can use all the lovely debugging features of Visual Studio Code to find out why my code don’t work. The hack takes the form of a few simple Python objects that fake part of the FreeCAD ones and allows your macros to run in any Python environment you fancy.
> If you like the idea of writing Python code that produces physical artefacts you might want to take a look at it.
FTR, There are amany interesting articles covering FreeCAD use for 3D Printing on Rob Miles' blog.[2,3]
[0] https://twitter.com/robmiles/status/1327700851499147265
[1] https://www.robmiles.com/journal/2020/11/5/freecad-simulator...
[2] https://www.robmiles.com/journal/category/FreeCAD
[3] https://www.robmiles.com/journal/category/3D+printing