Workaround: PCB STEP export into Solidworks

Hey there Art … been using McCAD PCB ST for 12 years, works fine for what I need.

However, I must switch to new schematic and PCB software so that I may do 3D models.

KiCad looks promising, but I must be sure that it will allow me to generate an output file for Solidworks.

Will the output file show up in Solidworks as a 3D model of PCB and all components?

Respectfully,
Mark

I have a colleague who uses Solidworks, He has been using my stepup exported boards for 1 year with no problems :slight_smile:

3 Likes

Shack … thank you kindly for the response.

You can try for yourself, this board is exported to step directly from kicad pcbnew (nightly)

IGBT_board.step.zip (2.7 MB)

Let me know how it goes.

1 Like

It seems to be having the same issues. The underlying problem is that there is a suppressed solid that’s included called SOLID_25 and then it gets included in every other solid as well, so all of them generate errors. Sometimes the board still builds fine (like in this case, and sometimes it gets all messed up. Regardless, even if it does, having a model in an assembly with errors in it will bug the crap out of any ME.

@ArtG
would you mind to have a try with FreeCAD and StepUp?
You only need to configure your KISYS3DMOD var inside the configuration file…

If you will use FC 0.17, your step model will have hierarchy for Board, Top, Bottom & Virtual parts

Here some tips

I’m not quite sure what you are asking. Like I stated in the original post if you run the file first through FreeCAD then it opens fine in Solidworks. It still would have that Solid_25 suppressted with an error, but it wouldn’t have it included in every solid in the the board, so it is easy to delete and use the model.

I’m suggesting to use StepUp to convert the KiCad pcb board file to STEP instead of using the internal exporter.

StepUp is the really first STEP exporter for KiCad and it has offered the option to have a STEP model of the kicad board since July 2015 also for KiCad 4 stable release.

If you download the Marcos’s project here


or Icezum project here

you can just test StepUp without the need to even touch any configuration file…
(download all the git project which includes 3D models and kicad_pcb file and unzip those locally)
Just use FC Tools Menu to install KiCad StepUp workbench, restart FC and open directly in FC a Kicad_pcb board file.

Maurice

1 Like

I downloaded the file and opened in SW2017. The only error was in the transformer model. Something in the geometry shown below that caused floating bodies.


I was able to heal with the import diagnostics and no longer have any errors in the file.

Thanks for the feedback guys.

@kiki that transformer model was edited with freecad before including the model to the kicad board, so that in particular is not a kicad issue.

Now that’s interesting. I’m using SW2017 as well. Can you post a screen capture of your FeatureManager Design Tree?

good catch.
I analyzed the built geometries with different CADs (DSM, VariCAD) but I didn’t found any issue…
Only analyzing the single transformer I get the errors in the geometry

Not even a FreeCAD issue probably, but the issue is in the boolean Cut operation done on the transformer inside FC…

Anyway, each CAD STEP parser has its own peculiarity…
For that reason a well formed and checked MCAD library is a must for KiCAD.

It is enough to have a single wrong model to mess up the all assembly result.
That is why we put a big effort on the 3D model library at GitHub…

1 Like

Art,

I agree. I’ve never had an issue with a Github model exporting to SW.

1 Like

Thanks! That’s just weird.

Hi,

I too have seen random parts being replaced to the wrong ones in Solidworks. In my case it was actually solidworks not handling the files properly. The first time i opened an exported design solidworks would save the parts as templates, if i then updated the design in kicad and did a new export solidworks would load the previously saved templates instead of the new components. This made some parts show completely different models than what they should. Clearing the solidworks template folder inbetween exports would fix this issue.

Solidworks also seems a lot more picky when it comes to STEP files than for example freecad, some of my models would consistently load with errors in solidworks, but not in freecad. Even when the STEP model exported by kicad was made by solidworks it would throw errors.

At risk of turning this into a SW thread…

I have my default templates to “Prompt user to select document template”. I think I had to do this to overcome the error @Gustavxerxes is referring to, but wouldn’t guarantee that will fix it.

It is very important to check each new 3d step model that has been generated before include this in the exporter…
Since the very first FC step exporter, there were no issues in the STEP generated board and parts if each single model included had no geometric issues…
https://lists.launchpad.net/kicad-developers/msg19243.html
There were positive feedback for:
Catia V5, PTC Creo Parametrics V2, Solid Edge ST7, Siemens NX10 and Solid Works
So I imagine that the main issue one can find would be related to the quality of each single model.

Thank you kindly for interest I helping with this problem.
Like I stated … I am on imac.
The PC step is not avail for Mac.
Issue still very much an unresolved obstacle.

Ok, I got to the bottom of this. Normally a step file would open as a part file, however KiCad step file opens as an assembly in Solidworks. My assembly file template got saved somehow with that missing Solid_25 already included into it. Every single component opens as a sub-assembly using the same template with the same missing Solid_25 in it. I opened the template deleted Solid_25 and then saved it. Now all KiCad step files open just fine.

1 Like