Ruslan (not sure of the screen name on this forum) worked on CadQuery modeling as well in our group and did the parametric trays.
Currently if I import a STEP file which is a multicoloured assembly I appear to get get one object which is a single colour. Is there a way around this?
If you are opening it in FreeCAD, you will have to change the STEP import settings to not merge compounds.
Edit->Preferences->Import/Export->STEP tab (uncheck "Enable STEP Compound merge)
Is there a good way to import STL files?
No. STL is a relatively lossy format, so no effort has ever been put into it. That said, there are times when all you have is an STL and it would be nice to import it and then move forward with the imprecise model. It’s not an easy fix though. You’re translating a mesh based file into BRep for OpenCASCADE, which is not mesh based. I’d be happy to review a pull request if somebody wants to try it though.
I see that the jupyter client has a way to explode assemblies. It would be awesome if there was a way to export this as an animated GLTF
There is interest in doing exploded assemblies in CQ core within the community, but nobody has taken on the task yet. Assembly animations in gltf, and exploded views exported to SVG would be nice. You can do it yourself programmatically now, but an automated system would be great.
My mind has been humming with ideas on all the work that was done at the hackathon. FreeCAD has a great UI automation API, so I was thinking that it should be possible to automatically update the parameters of the FreeCAD tray models from our generate.py script and then generate models that CadQuery could use in the automated assembly/documentation framework. It also shouldn’t be too hard to create a web front end that allows a user to select the components they have access to (from a database of components), maybe allow them to change the tray type, then generate the assembly and documentation. I could see it being helpful to allow someone to set their print volume as well ,so that the leg rail could be split into sections that will fit the build volume.
This would be a nice merging of the FreeCAD and CadQuery work done at the hackathon, and would help drive this experimental framework forward.
I also haven’t forgotten about the parametric enclosure that we didn’t have time to work on. I think there is plenty of room for auto-generation there too.