I’m trying to get my first model ready. But now I run into a problem.
I’m modeling a Teensy in Fusion360 and exported it as a step file. After that I imported the step into FreeCAD. But now I have tons of parts, which I tried to group with boolean actions. But this only works to a certain point and then thows an error.
Now I’m kind of suck.
I attached the file so you can have a look. Is there a way to export a solid “one part” step file? Step file to download
update as promised… finally got around to make my FreeCAD/python code to add license info to the VRML files as well:
I finished the RM transformers…
Available now RM4, RM5, RM6, RM7, RM8, RM10, RM12, RM14 (plus low profile variants) as far as I could make them (TDK/Epcos datasheet only had low profile cores in them, not the coil formers, hope I got them right).
Also RM5 and RM6 had additional pin count variants listed, covered them as well… enjoy. https://github.com/JoanTheSpark/KiCAD/blob/master/3D-shapes/Transformers.zip
PS: sorry for the VRML file sizes, I have no idea why, but it seems some of them are twice as big as needed. If anyone has got an idea why that could be (for example RM5-6pin & RM6-6pin are the same model, just different dimensions) I’m all ears.
I export them from Inventor as STEP… those files are in the repo as well (end in stp instead of wrl).
Those are then imported in FreeCAD and exported as VRML, per script, automatically, one after the other…
Really no idea where the difference in treatment comes from, especially as the original files for those two models are the same, just different parameters for dimensions that should not affect basic file/mesh/etc. properties that would cause stuff like this (IMHO).
I don’t know if there are other more detailed STEP model viewers out there that allow some sort of examination of the data that is in them…
Another thing I couldn’t find in FreeCAD was a way to reduce the numbers of segments that are being used to approximate circles/round surfaces… there are a couple of those in there that could easily do with just 8-6 segments per 90 degrees.
I naturally have no idea how STEP models are defined and if this kind of optimization is even possible…
at the moment using a library for 3D models based on MCAD models (FreeCAD or STEP in general) is a good compromise for kicad to have a native and realistic/parametric 3D rendering (with VRML exported with FreeCAD) and an exact representation of your physical board in 3D PCB mechanical environment (through my kicad StepUp)
@Joan_Sparky I think that our effort in doing a 3D MCAD library for kicad is in the right direction
what I would like to see, as I asked already at developer’s list, is a 3D MCAD library composed with FreeCAD/STEP 3D parametric models and 3D VRML models aligned to the kicad model footprints…
may be @Ricardo_Crudo could ask the developers to create an official kicad repo with FreeCAD/STEP and VRML 3D models
That will help all the users that need 3D models both for realistic rendering and mechanical ECAD MCAD collaboration in finding these resources easier…
and moreover that official repo may incentive other people to collaborate and improve the lib
Well STEP is the undisputed king of standards specification complexity. With the plugin system I am working on it should be possible for KiCad to directly support STEP via OpenCascade but of course that’s a matter of someone doing the actual coding. Maurice’s scripts have pushed the priority of such coding down the list somewhat since the devs are all busy with so many things and the scripts are a good compromise. In the long term I’d like kicad to have its own minimal engine for displaying and producing STEP assembly models (and IGES as well - so far I can produce IGES but can’t display it) but that’s looking like a 2-year full-time job to me, which means I can probably finish the task in 10 years. The only objection some devs (including me) have to OpenCascade is that it’s a huge library - that’s inevitable since it is a 3D MCAD geometry kernel. However, kicad only needs extremely basic geometry support to be able to create a PCB solid model (as demonstrated in my libIGES project) and to add other models to an assembly model. At any rate my new plugin system allows us to make OpenCascade an optional requirement which can be installed separately - this arrangement keeps all devs happy while not eliminating the possibility of native STEP support via a custom lib in the future.
With all this great work on modelling SMD components, are there any THT components like resistors?
I’ve generated and used cbernardo’s resistors as WRML files, but would like to use Maurice’s script to model my enclosure with the multiple PCBs inside. However, it’s all through-hole stuff and I’m having difficulty finding appropriate resistors…
I noticed another thread which allows parametric creation of various components. Is there one like Cyril did in WRML that would generate STEP models?
Thanks Maurice. I’ve had a look, but all seem to be horizontal TH models, none of them are vertical. I’ve tried taking one and then modifying it in my CAD (we use Creo / ProE), but no real luck…
The great thing with @cbernardo’s scripts for VRML is that I was able to modify a few parameters such as the pitch so I could get them perfectly matching my PCB design.
I did see a guide somewhere to convert VRML models to STEP but it was rather convoluted and involved using many different programs (Blender, FreeCAD, etc) so seems a rather tedious step if I have many components to convert.
It might be easier for me to make one from scratch if I can’t find something suitable already out there
if you like to code a bit, have a look at
this are some script to generate STEP and VRML models starting from a parametric table as in component’s data sheet
If you would like to play with the code, cadquery is a nice framework to let you generate parts with parametric scripts in python
here is a very simple example for a smd chip cap
may be you can have a look and create some script to generate TH resistors, than the other users could have a benefit …
I found that, after playing a bit with cadquery, for me it is easier to create parts in python than manually
PS use cadquery-freecad-module 2.0