Hi Marcos,
I don't have this issue (normally I use smd, so mm are a huge gap)
1) could you please send me a sample board to check why you get an offset?
(it is enough a bare pcb plus 1 or 2 STEP model)
I would like to check if the 3D model is correctly aligned ...
Is your pcb rotated?
I noticed that if the pcb is rotated inside kicad, the exported idf file
seems to be rotated not exactly around its center... but I'm not sure if
that is your case...
Please consider that I don't use FC 0.14 because has old routines for
exporting STEP models, so I could not rely on it, and FC 0.16 is still in
beta version.. I would suggest to use the latest stable release FC 0.15 for
best result (the only I tested/developed on the script).
Anyway I just tested it on FC 0.16 on win and pcb and models are perfectly
aligned (I checked importing wrl side by side with the generated STEP board
+ models)
2) I added aux origin and base point to let people decide where place its
board and components, inside MCAD.
So it is possible to pre-align the PCB and STEP models with the mechanical
assembly.
I also added the option to fuse all the part in a single block, to
facilitate the insertion in the MCAD assembly.
3) regarding the model generator, probably you are missing CadQuery Module
(it has to be added to the Mod dir to FreeCAD)
It is written in README.txt as requirement, but may be I should clarify
better that the script is based on cadquery freecad module.
https://github.com/jmwright/cadquery-freecad-module/
I checked the generator in FC 0.16 (windows) and it works fine.
Moreover you can download some already generated models at:
https://github.com/easyw/kicad-3d-models-in-freecad/tree/master/cadquery/FCAD_script_generator/generated_gw/qfp
https://github.com/easyw/kicad-3d-models-in-freecad/tree/master/cadquery/FCAD_script_generator/generated_gw/soic
https://github.com/easyw/kicad-3d-models-in-freecad/tree/master/cadquery/FCAD_script_generator/generated_gw/ssop
https://github.com/easyw/kicad-3d-models-in-freecad/tree/master/cadquery/FCAD_script_generator/generated_gw/tssop
These 3D models are already correctly aligned to be used with the script
thank you for your feedback
Maurice
On 13/08/2015 21.04, Marcos Chaparro wrote:
Hi Maurice,
I tried it and it works. I keep forgetting the final "/" in the KISYS3DMOD
path. The only issue I see is that the pcb and the modules have an offset
of a couple of mm. I guess thats why you added auxorigin, base origin,
base
point placement option.
I couldn't test the model generator, give me the following error:
marcos@bluestreak:~/electronica/Mrk
industries/tools/kicad/libs/kicad-3d-models-in-freecad/cadquery/FCAD_script_generator$
freecad make_gw_export_fc.py all
FreeCAD 0.14, Libs: 0.14R3702 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2011
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
Exception while processing file: make_gw_export_fc.py [No module named
Gui.Command]
File format not supported: all
Thats freecad 0.14, but 0.16 from git reports the same error. I'm
using Python 2.7.10
Thanks!
Marcos
On Thu, Aug 13, 2015 at 1:49 PM, Lorenzo Marcantonio <
l.marcantonio@xxxxxxxxxxxx> wrote:
On Thu, 13 Aug 2015 15:27:33 +0200,
easyw wrote:
Hi Lorenzo, have you tried the script? Could you please send me a feed
back?
Don't have here a machine juicy enough to run freecad since I'm on
vacation; not that the one at works has a serious OpenGL stack:P (intel
hd on a laptop...)
Will try when back to the office
--
Lorenzo Marcantonio
Logos Srl
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp