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

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.

totally forgot… needed some PLCC-4 led housings as well:
PLCC-2.stp (205.1 KB)
PLCC-4.stp (254.0 KB)

PLCC-2_transparent.stp (1005.0 KB)
PLCC-4_transparent.stp (1.2 MB)

we might need to get this sorted via github I think…

@Joan_Sparky
good work!

to convert them to scaled VRML you can use the
kicad_StepUp_vrml_export.FCMacro
launched by
launch-kicad_StepUp-step-to-vrml-example.bat
it works with FC GUI, but you don’t have to do anything… it it possible also to quit the FC GUI at the end of conversion just adding
sys.exit(“exiting”)

the MELF models don’t come as single part…

I would suggest to create the ‘band’ as a solid cylinder

That would be great… I still would prefer have both version of models for the lib

thanks

I know… it makes this possible:

Filesize for that sucker is a bit overweight though, dunno why.
MELF_transparent_VRML.zip (302.8 KB)

mmm
may be if you give the band a little thickness it could be fused in one obj
(a pipe instead of a surface)

I can do that, sure… but then FreeCAD can’t give the glass transparency anymore as this property is adjusted for a whole part.
That’s why the transparent cylinder can’t touch/intersect anything, same for the PLCC housing clear lid.
Unless you have different knowledge - I use FreeCAD atmo only for conversions, nothing else, so wouldn’t know if you can set transparency to faces also?

Asking the other way round, where do these surfaces make trouble in your chain?
I can surely make some ‘special’ models which don’t have the transparency for the ones that got it…

@Joan_Sparky MAybe you can add multiple shapes and individual control the transparency. So instead of make a cylinder, you will make an open cyclinder and disks with transparency? …

@Joan_Sparky
I attached a FreeCAD MELF transparent with a pipe as marker
melf-transparent-FreeCAD.zip (13.2 KB)
and the VRML model obtained executing the scaling macro (attached below)
melf-transparent.wrl (1.3 MB)
note that the STEP model
melf-transparent.step (137.5 KB)
now can be fused in a single part without problem
melf-transparent-single-part.step (272.9 KB)
and the scaling multipart to VRML Macro
scale-vrml-multipart-Macro.zip (881 Bytes)

for a correct MCAD exporting of board and parts, I need to have a STEP model in a single object

@Joan_Sparky
I opened a new topic for 3D mechanical library :wink:


we can move this conversation over there (more on topic)