Export STL to STP

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Gharryh1957
Posts: 3
Joined: Thu May 26, 2022 2:11 pm

Export STL to STP

Post by Gharryh1957 »

I have downloaded and installed the latest FreeCad version.

Then opend the
Motormount.stl
(337.13 KiB) Downloaded 22 times
and using thre file-->export function (ctrl+E) I want to create a stp file
but then I get this error:
16:25:24 <Import> ImportOCAF2.cpp(1159): Unnamed#Motormount has null shape
but the part information shows lots points and edges.
So is this a bug or is my stl wrong??

Harry
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Export STL to STP

Post by kisolre »

Your understanding of how all this works is wrong ;)
Why do you need that STP file? FreeCAD (or almost any other tool out there) can not recreate a proper geometric shape without a lot of guidance. Like for example is the outer surface a cone or a multyside pyramid?
The shape is not so complex to recreate from scratch using that STL mesh as reference.
You use Part/CreateShapeFromMesh and then use that shape as reference to create a proper PartDesighBody.
User avatar
Shalmeneser
Veteran
Posts: 9560
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Export STL to STP

Post by Shalmeneser »

:idea:
Attachments
MotorMount_SHALM.FCStd
(122.32 KiB) Downloaded 18 times
Capture d’écran 2022-05-26 212621.jpg
Capture d’écran 2022-05-26 212621.jpg (52.35 KiB) Viewed 824 times
User avatar
adrianinsaval
Veteran
Posts: 5551
Joined: Thu Apr 05, 2018 5:15 pm

Re: Export STL to STP

Post by adrianinsaval »

Gharryh1957 wrote: Thu May 26, 2022 2:31 pm I have downloaded and installed the latest FreeCad version.
Please read the instructions in the big red banner above, we have no idea what you consider "latest" and even if we did just knowing the freecad version number is usually not enough, if you want help you need to provide your full freecad info
Then opend theMotormount.stl
and using thre file-->export function (ctrl+E) I want to create a stp file
but then I get this error:
16:25:24 <Import> ImportOCAF2.cpp(1159): Unnamed#Motormount has null shape
but the part information shows lots points and edges.
STL are meshes, what do you expect to gain by exporting to stp? If you insist on doing it you need to first turn your mesh into a valid shape using the make shape from mesh tool in Part workbench
Post Reply