Synchronize electronic and mechanical CAD with KiCad StepUp workbench

In this tutorial we will make a STEP or IGES file of PCB designed with KiCad EDA. Then PCB will be operable with CAD software. For that we will see how to associate KiCad footprints to proper 3D file (step 1 to 5) and then use KiCad StepUp workbench to load PCB and export it to desired format (step 6 to 9). To follow it, you must have at your disposal complete electronics board project on KiCad.

  1. Step 1: Visualize your project

    In Pcbnew, you can at any time get a 3D preview of your PCB via the menu View3D Viewer (Shortcut Alt+3). 3D view of board will then be displayed in the 3D Viewer interface.

    Note however in the overview below that two screw terminals J1 and J2 are missing, as well as the potentiometer RV1.

    NB: If the 3D model you are viewing suits you, you can go directly to step 6.

    In order complete our 3D model, it’s necessary to understand how 3D files are managed with KiCad.

  2. Step 2: File management

    At KiCad installation, number of 3D models (STEP and WRL) were downloaded to your computer at the location " C:\Program Files \ KiCad \ share \ kicad \ modules \ packages3d ". Below is an overview of packages3d folder with native 3D models in STEP and WRL format.

    These files are directly associated with component fingerprints, so we can get a fairly accurate preview of our board. Especially if it contains only usual components. If preview is incomplete, it means that no fingerprint was associated to some components.

  3. Step 3: Create and configure a 3D model library

    If it’s not already done, you have to create a library folder that will contain your electronics 3D files. If you try to put 3D files on native library (packages3d) they will be delete in case of update. You need a specific path for your work.

    Below you can see my KiCadLib library folder, specific to KiCad. 3D folder contains both my personal models and those I found on the internet.

    To simplify research of 3D model in KiCad, you must add a path to 3D folder. Go first to the fingerprint editor (from Pcbnew) then to Preference → Configure paths, as below.

    In last frame at GUI bottom, do: add a path (by clicking on "+" icon) then fill in name and path cells. In my case, illustrated below, name of my folder is MesModeles3D and path is "D:\02_QUENTIN\05_Projets_Tech\Bibliotheques\KiCadLib\3D".

    Procedure summary:

    → Create a KiCad library folder then create a subfolder to store your electronics 3D files;

    → From Pcbnew go to Fingerprint Editor then to Preference → Configure paths;

    → Add a path on KiCad (with " + " icon) then fill in all fields: Alias and Path;

    → Click on OK.

    From now, KiCad will propose this path in 3D Parameters that we will see later, after we put a 3D model in our library…

  4. Step 4: Add 3D model to your library

    To obtain these 3D files you can either download it from internet or make model yourself. First option is obviously the fastest. So, you will first search on websites like GrabCAD, TracePart, Sketchfab, etc. There is also SnapEDA which is specialised on electronic design, with component libraries mixing footprints and 3D files. You can also search directly on your browser. Image below shows SnapEDA on the left and GrabCAD on the right.

    After downloading STEP or WRL files, copy them to 3D folder created in step 2. To make sure that 3D files you uploaded are in agreement with footprints you can use the Measure Distance tool in the component editor.

    All that's left to do is associate 3D files to fingerprints...

  5. Step 5: Associate 3D model to component fingerprint

    To associate a 3D model to a footprint you have to go to its properties via the Footprint Editor: in Pcbnew click on Footprint Editor and search for your footprint in list on the left of GUI. Then, in Footprint Properties, go to 3D Parameter tab (3rd tab) which displays in interface below.

    In our case we can see that no preview is available and no path to a model library is indicated. We will have to indicate path where 3D files are stored by clicking on file icon at bottom of the terminal. You have to click on file icon to get window below. Select your path in the drop-down list Path then choose model.

    After clicking OK you will see that component has appeared but not positioned correctly. To position it correctly you must use the X Y Z rotations and movements.

    In my case, shown below, I had to rotate -90° along X and move 5 mm along X to correctly position my component. Then we record what we've done and that's it.