New FreeCAD CadQuery2 Workbench Released

375 views
Skip to first unread message

jean paul

unread,
Oct 31, 2021, 3:35:46 AM10/31/21
to CadQuery

Dear all, I released a new FreeCAD Workbench to render CadQuery 2.x scripts. It’s a fork of Jeremy Wright's one that run cadquery v2.x script then import the BRep shape of the objects into FreeCAD.

CadQuery is not include in the workbench and it needs to be installed separately. So the preferable way is to install both cadquery and freecad into a dedicated conda environment.

I don’t know if it would be useful, also considering the above constrain. I preliminary made it for my personal usage, starting with a simple script to import cadquery object into freecad, then I start looking to automate it through a workbench, then step by step, after some refinement, I thought why not sharing it with the community. So here it is https://github.com/jpmlt/freecad-cadquery2-workbench.

Your comments are welcomes.

Cheers Jean Paul.

screenshot1.png

Adam Urbanczyk

unread,
Oct 31, 2021, 7:00:22 AM10/31/21
to CadQuery
Cool, thanks for sharing. You might be interested in the fact that exportBrep also works with streams (io.BytesIO), so if FreeCAD supports importing from a stream you could get rid of temp files.

Jeremy Wright

unread,
Oct 31, 2021, 8:08:55 AM10/31/21
to Adam Urbanczyk, CadQuery
Very cool Jean Paul, thanks for sharing.

Do you mind if I update the readme on the old workbench to point users to your fork?

--
cadquery home: https://github.com/CadQuery/cadquery
post issues at https://github.com/CadQuery/cadquery/issues
run it at home at : https://github.com/CadQuery/CQ-editor
---
You received this message because you are subscribed to the Google Groups "CadQuery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cadquery+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cadquery/27ac1fce-bd6b-4586-8085-5c745aa408afn%40googlegroups.com.

jean paul

unread,
Oct 31, 2021, 9:59:47 AM10/31/21
to CadQuery
Hi Adam, thanks for the advice, I will check it.

jean paul

unread,
Oct 31, 2021, 10:08:12 AM10/31/21
to CadQuery
Hi Jeremy, for sure you can do it, thank you.
The only thing is as far I understand, right now it's not easy to make cadquery as a pip package. So it may be not the most practical for existing freecad users to have to install another session into a conda environment.

Adam Urbanczyk

unread,
Oct 31, 2021, 10:41:56 AM10/31/21
to CadQuery
Note that freecad is can be installed via conda (https://anaconda.org/conda-forge/freecad) so I'd suggest to just stick with that  (and obviously install CQ the same way).

Jeremy Wright

unread,
Oct 31, 2021, 10:51:37 AM10/31/21
to Adam Urbanczyk, CadQuery
I think that users will be happy to have an option to combine CQ 2.x with FreeCAD, which they don't have right now with the main workbench. So I'm happy to promote your fork, even if it requires some extra installation steps.

Jeremy Wright

unread,
Nov 1, 2021, 1:38:18 PM11/1/21
to CadQuery
I have added a mention of your fork to the readme's introduction. https://github.com/jmwright/cadquery-freecad-module/blob/master/README.md#introduction
Reply all
Reply to author
Forward
0 new messages