Hi,
I’ve done a script to easily export pcb board and modules to MCAD STEP format with colors
using kicad StepUp the easiest way is done with minimal effort from user:
just add STEP models to your standard 3D packages path and run the script
(detailed instructions in README.txt)
kicad StepUp is a new approach to export kicad board and modules in STEP AP214 (with colors) and create the wrl library.
requirements:
- latest kicad
- FreeCAD 0.15
Please consider that the project is at beta state and not everything has been completed
The only difference from the actual way of using kicad is to substitute Wings3D with FreeCAD
and, obviously, populate the 3D models with STEP lib…
(anyway Wings3D can be used besides FreeCAD if the 3D STEP exporting it is not needed)
download the zip file to get:
a kicad demo project, with self containing STEP and wrl modules to be used just out of the box
(NB use the script from inside the dir)
some screen-shots of the result
here there is also a link of the script in action…
thank you for any suggestion and feedback,
Maurice
####################################
using kicad StepUp the easiest way:
(not changing the way you use kicad)
- just copy a STEP 3d model in the same folder in which there is your wrl 3d model and
use the same name of the wrl model name (e.g. r_0603.wrl → r_0603.step) - go to your board folder and copy the script kicad_StepUp.FCMacro and the config file ksu-config.cfg
inside that folder, edit the config file ksu-config.cfg with e.g. notepad changing your model prefix to your
KISYS3DMOD path - export from kicad pcbnew the IDF model of the board
- run the script from command line or from a bash/batch file
/freecad <kicad_pcb_name.emn> ksu-config.cfg kicad_StepUp.FCMacro
(e.g. freecad mypcb.emn ksu-config.cfg kicad_StepUp.FCMacro)
just watch the script assembly your 3D board with 3D models
####################################
using kicad StepUp the best way:
(getting the best from STEP models)
- just copy a STEP 3d model in the same folder in which there is your wrl 3d model and
- export the STEP model, scaled 1/2.54 to wrl with the same name of the STEP model (e.g. r_0603.wrl → r_0603.step)
in this way your 3D board in kicad pcbnew 3d-viewer and in FreeCAD workbench - go to your board folder and copy the script kicad_StepUp.FCMacro and the config file ksu-config.cfg
inside that folder, edit the config file ksu-config.cfg with e.g. notepad changing your model prefix to your KISYS3DMOD path - export from kicad pcbnew the IDF model of the board
- run the script from command line or from a bash/batch file
/freecad <kicad_pcb_name.emn> ksu-config.cfg kicad_StepUp.FCMacro
(e.g. freecad mypcb.emn ksu-config.cfg kicad_StepUp.FCMacro)
just watch the script assembly your 3D board with 3D models
credits:
kicad EDA
IDF export for kicad
Cirilo Bernardo
FreeCAD
IDF import for FreeCAD
Milos Koutny (milos.koutny@gmail.com)
FreeCAD-PCB
marmni (marmni@onet.eu)