This is a revised Cadquery workbench on FreeCAD that allows the Code Editor to execute and display CadQuery models (*.py not macro).
-
After install build123d/ Cadquery in path: C:\Users\AppData\Roaming\Python\Python311\site-packages
then copy revised WB to folder path C:\Users\AppData\Roaming\FreeCAD\Mod\ or following sequence instruction from Jeremy Wright in main hub (cadquery-freecad-workbench) then replace cadquery WB content by files of this branch to folder path: C:\Users\AppData\Roaming\FreeCAD\Mod\Restart Freecad then run test:
+write code in code editor
+click Execute Script to show model (for Build123d click "Execute Script" button in twice)
-
If you already installed build123d/ Cadquery in another python path folder eg: C:\Users\Admin\AppData\Local\Programs\Python\Python313\Lib\site-packages
and dont want to install cadquery/ build123d again then copy cadquery/ build123d package & dependancies from old path folder to C:\Users\Admin\AppData\Local\Programs\FreeCAD 1.0\bin\Lib\site-packages\ (* Note need checking requirement dependancies of cadquery/build123d, some packages may already got in Freecad)then copy revised WB to folder path C:\Users\AppData\Roaming\FreeCAD\Mod\ , now Freecad can call core cadquery/build123d functions.
option using "from cadquery.vis import show"
in Freecad environment, Cadquery - Build123d now are more convenient in usage with dialog



