combine colored step files #1454
Unanswered
RBSPhoenix
asked this question in
Q&A
Replies: 1 comment
-
CadQuery's importStep method uses STEPControl_Reader, and I don't think it supports colors. You could drop down to the OCP layer and try to use STEPCAFControl_Reader with the color mode set, but I have not tried to do that so I do not know how/if it will work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I want to combine step files while keeping the colors of the original files.
In my example, I have a simple step file named pcb.stp, which is basically a green box. I also have a chip package called SOT23-6.stp where the main part is black and the metallic pins are silver/gray. Now I want to place the chip on the pcb and export the assembly as a new step file.
The code I am running in CQ-editor is this:
but after I open the file, everything is black/dark gray.
Is there any way to change the importers settings? When I google it, I saw a discussion for FreeCAD where someone had the same issue with FreeCAD and he was told to change some settings:
https://forum.freecad.org/viewtopic.php?t=50308
Or is there just no way I can do that with CadQuery? I think its an issue of the importer, because CQ-editor shows me the two parts in orange. I can change the color in the add() command. So I can change the pcb to green. But the chip package has two different colors and I don't know how to achieve my goal to simply add a couple of step files, move them around and then save the assembly as another, combined step file.
Any ideas anyone?
Thanks and have a nice day
Michael
Beta Was this translation helpful? Give feedback.
All reactions