Hi! I have a simple little design I’m doing that will go into an enclosure. I usually just export the PCB early on to try and get the enclosure designed right, but I’m having issues with with the file importing into solidworks. Several of the components are rotated and replaced by other components. The images attached should be fairly self explaining. I have tried removing all the 3d models and putting them back in, to see if I could isolate it down to one malformed STEP file that maybe solidworks doesn’t like, I’m not sure what else to do for debugging it. If it’s just one component causing issues, I would be fine leaving it out, but I only need a few components on this board to show in the 3d model.
Oh, and freecad loads the step file just fine, so I haven’t included a render from that.
At some point I will hopefully use freecad, but it hasn’t lived up to what I need it to do quite yet. In this particular case, I am meshing with other things already in solidworks, and it’s what I know from work (Which is how I get access to it right now).
I tried that, and it still does it. In fact, the picture shown is KicadStep → Freecad → FreecadStep → Solidworks…
What I’ve done since in the interim is to just surpress the few components that are causing problems and import those step files manually and align them, it’s a kludge, but it gets me working, but I’d love to understand the problem further.
In the past when I imported multiple PCB assemblies (from STEP files) into a SolidWorks assembly I’ve had problems with SolidWorks changing parts around between the different PCBs. I assumed it was due to different parts having some sort of identical internal ID though I never dug into the specifics.
What I do now is to import the PCB assembly STEP file into a new assembly file in SolidWorks and then save it as a part file (.SLDPRT extension) in SolidWorks.
Try moving your STEP file into its own directory prior to importing it into SolidWorks and then save it back to that directory as a part file. Heck you may even need to close your SolidWorks project prior to doing all this. Maybe even close and restart SolidWorks as well as, in my experience, SolidWorks has a tendency to keep files in memory even after they are closed.
Hmm, I don’t get a popup for selecting the assembly template, and it will just save an sldasm file, and no sldprt file. I did try some of the STEP import options to make it a part and a few other things, but they all showed up with the same errors.
I’ve gotten a board imported at least for my needs for now, so I might just chalk this up to an issue with solidworks, and not that kicad is creating a malformed STEP file.
Consider it to have been a good test that helps confirm it’s a SolidWorks-related problem (not Kicad).
Of course, it could be more about how it was modeled than it is a SolidWorks-Step export problem…
Clarification: ‘modeled’ applies to the 3D-models in Kicad. Many of the Kicad parts use WRL instead of STEP and that may be a problem. I suggest looking at the footprints and linked step/wrl. Can do simple test with some parts… some of the parts have both step and wrl - you choose…