How to interactive align 3d model to pcbnew footprint: new tool for kicad in 'Altium' style

@Joan_Sparky
FreeCAD has the ability to script also without the GUI…
I’ve done all my script with the GUI because I like to see what I’m building… :smile:

Now I’m planning to build the repo with STEP and VRML models…
I need to plan a structure for that…
may be, as you suggested, it could be nice to have also KCFP, so the lib could be loaded smoothly…

Just one more note: could it possible to have the 3D STEP models without the text on the model itself?
That would give a smaller (in bites) model…
Maurice

Can you file that one under artistic freedom?
Size wise for a SOT89-5 the difference is 200% :smile:
SOT89-5_NL.stp (124.8 KB)

Where as for a TQFP-32-0.5 the difference is just 50%:
xQFP_32_0.5_NL.stp (722.5 KB)
xQFP_32_0.5.stp (1.0 MB)

IMHO it makes them special and more realistic, when you got some lettering on them… :sunglasses:

ok, we could put both (with and without) in the repo… :smile:

Hm… browsing fonts atm… http://www.dafont.com/theme.php?cat=301&text=ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789&fpp=100&psize=xs
See anything you like?
Would definitely get rid of the curves (lots of vertices) as currently I’m using Tahoma.

be careful also with font license…
models have to be free to be freely integrated in e.g. open and also closed hw design

Dully noted… I think I’ll go with something akin to this…
http://www.dafont.com/hyperspace.font?fpp=100&psize=xs&text=ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789
just need to find one that is GPL or somesuch, what license are you working with?

those are free for personal use… I’m looking for something free as the word freedom :slight_smile:
people are using kicad also for business…
I think GPL should be fine…
there is a discussion about license and fonts on developers mailing list…
http://www.mail-archive.com/kicad-developers@lists.launchpad.net/msg16268.html

also for that reason I was thinking to a plain mechanical model

Nice read, thanks.
I think I’m down to 2 choices here, both licenses are ‘Free’.
They got uppercase/lowercase letters, are readable and taller than wide.

http://www.fontriver.com/font/blank/

http://www.fontriver.com/font/ua_squared/

[edit]
not getting the ‘blank’ one working in inventor, shows up fine in office… otf doesn’t work it seems, tried another font as the ua-squared doesn’t read well. But see for yourself:
SOT89-5_julius.stp (286.7 KB)
SOT89-5_uasqrd.stp (230.4 KB)

license is free according to txt file that comes with this one:
http://www.fontriver.com/font/systematic_j/

[edit2]
yes, that systematic_j font is a keeper
xQFP_32_0.5_julius.stp (939.1 KB)

julius license seems fine…
may be we could contact him
http://jthz.com/contact

Currently trying to find a way to get the text + 1st pin marker as a 2-dimensional flat sheet (just faces) - stay tuned.

Also needed some connectors today - here are samples for them, don’t know if you got them covered with your scripts?

Conn_Phoenix-5.08-4P-SIDE.stp (615.5 KB)
Conn_Phoenix-5.08-4P-TOP.stp (594.9 KB)
Conn_Phoenix-3.81-4P-SIDE.stp (690.5 KB)

@Joan_Sparky
they are great!
I’m going to open a new thread for a 3D mechanical lib! :smile:

I think we would need:

  • STEP model 1:1 no text on it (3Dmodel_name.step)
  • STEP model 1:1 with text on it (3Dmodel_name_L.step)
  • VRML model scaled 1/2.54 (I will provide it)
  • footprint to the 3D model (KCFP)

then it will be possible to build a lib to put beside the kicad official distributed one, to let people easily convert to mechanical model board and parts, maintaining the usual way of working with kicad!
I’m going to arrange the structure and I will update you.

thank you for your nice work!
M

Conn_Phoenix-3.81-4P-TOP.stp (666.3 KB)

need to work out another way/order of creating the pins/housing… it’s a PITA to turn the housing 90 deg for the TOP version at the moment.
Still, doing those 4 parametric models (means, I can do 2 pole - 20 pole just by clicking and exporting) took the same time as taking 2 STEP models from the phoenix website for their PTSM 2.5mm series and aligning/modding them for KiCAD:

Conn_PTSM-0,5-2P-HH-THR.stp (190.7 KB)
Conn_PTSM-0,5-5P-HH-THR.stp (406.9 KB)

@Joan_Sparky
if you get some time, here a list of some 3d diodes parts:
Melf
Minimelf


pg. 134, 135

SOD123
SOD323
SOD523


pg. 171, 173, 175

SMA
SMB
SMC


pg. 160, 162, 163

SMF
http://www.vishay.com/marcom/literature/vhn-po1108-0310.pdf

please consider STEP plain model and STEP Labeled model
Thanks
Maurice

There’s a very simple (and limited) VRML2 rescaling tool in my VRML tool set https://github.com/cbernardo/kicad3Dmodels). The tool is ‘vrmlstitch’; it was intended to create an assembly of VRML2 models which could be used within kicad by avoiding the use of VRML features which were not correctly supported by kicad at the time. An example input file which takes a file ‘model.wrl’, and scales it by 0.3939 to produce a file ‘test.wrl’ is shown below. Running the tool with no arguments shows the usage hint.

file: test
.begin
name: model.wrl
r: 0 0 0 1
s: .3939 .3939 .3939
t: 0 0 0
.end

1 Like

@cbernardo
Thanks, found the source .cpp file in kicad3Dmodels/src/vrml/models/stitch/…

I was also looking at embedding FreeCAD, but didn’t had time yet to chase that alley down:
http://www.freecadweb.org/wiki/index.php?title=Embedding_FreeCAD

Perfect timing, I can’t wait to try this tool.

@Joan_Sparky
have a look at the FC forum… their support is great! :smile:
http://forum.freecadweb.org/viewtopic.php?f=22&t=5320#p42411

I’m Joan over there… if Smoshie is you :wink:

@Joan_Sparky
here the do214ab I’ve made in FC to be added to the lib
do214ab.FCStd (50.0 KB)
do214ab.step (180.5 KB)
do214ab.wrl (97.4 KB)

All with letters/markings for the time being… I’ll need to find a way to disable the text easily (ie I’m working on it) before exporting.

SMA.stp (201.3 KB)
SMB.stp (209.1 KB)
SMC.stp (206.1 KB)

SOD123.stp (240.2 KB)
SOD123F.stp (222.3 KB)
SOD323.stp (254.0 KB)
SOD323F.stp (243.3 KB)
SOD523.stp (223.6 KB)
SOD523 is essentially a SOD523F… there is no extra flat package, it’s already designed like one.

Hm… looking at the size of your SMC (180.5KB) without text vs my SMC (206.1KB) with text… I don’t see the point of doing them without text really :stuck_out_tongue:

MELF.stp (27.2 KB)
MELF_transparent.stp (135.9 KB)

MELF-MINI.stp (26.5 KB)
MELF-MINI_transparent.stp (136.4 KB)

So, back to my schematic/layout with some intermezzo in python… let’s see if I can get that embedded thing working for freecad… the number of 3d models is growing and I def wont enjoy converting them to VRML manually.