Convert stl to step file

ok, sorry im new, this is a question about 3d modeling of parts, and I wasn’t sure where to ask.

I have a part in use that I can not find a model for. The part:
BH04B-XASK (LF)(SN) a high rise jst connector.
but i still need the part, so I drafted one in openscad, and the did a conversion in freeCAD to a step file.

well I must have done it wrong or something, because when I load the step file, it just doesn’t render an object.

oof cant upload the scad. well, there is a crude picture of the part, and here is a link to the scad to generate it. jst BH04B-XASK (LF)(SN) - Pastebin.com

What I want to know: How do i go from this scad file, to a model format kicad 9.0.2 will accept.

Openscad can output a variety of formats, including stl, 3mf, dxf… but not step files.
is there an online converter?
can I get a list of formats that kicad will accept for 3D part models?

KiCad does not do any conversion of 3D file formats, and this is quite off topic. I guess it can be done with FreeCAD (it has on OpenSCAD workbench and also cooperates with KiCad quite nicely). For further questions, asking on the FreeCAD forum is probably a better place.

It would be worth learning to use FreeCAD for making models.

That said, here’s how to convert an STL to a STEP using FreeCAD…

Clarification: step#11: only need to select a Face and Click Sketch if wanting to add a feature (Extrude or Cut…etc). Otherwise, simply select the part/Body/BaseFeature and Export as STEP…

You can also download the models from this JST url → J.S.T. Mfg. Co., Ltd.

Just fill required fields with some data including your email.
They will send the model attached.

while I did use that for some connectors, the specific one I needed was not available.

It seems you can download at jlcpcb

It should offer also 3d model

I see the footprint, and schematic, but not the 3d model.

There are plugins for kicad to do it, but also kicad from 8 should be able to download the 3d model and footprint.
I’m not at the pc now.

It should be something like this:

  1. On Kicad, Open footprint editor, select library to import
  2. File > Import > Footprint and select the file

KiCad doesn’t download 3D models from JLC by itself, but my plugin does:

1 Like

Well, the specific one you mention in the OP does appear…

that is literally a different part. (which i am also using.) its not like I prefer modeling parts I could just download.

anyway, this video was very helpful:

1 Like

Sorry but I’m totally puzzled…why this is a different part?

its part name, and physical geometry are not the same. but i have solved the issue by modeling a part on my own.