Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Converting STL files into a Model format that can be used in a sketch
Hi
Does anyone have any suggestions on this one? having googled the question, seems like it can be done on importing on Solid Works but doesn't seem to have the same facility in Onshape, the best I have so far is to export as an IGES file so that a sketch can be created around the part, but it still has no direct intersect with it so is pretty useless - open to ideas?
thanks as always
Ian.
Does anyone have any suggestions on this one? having googled the question, seems like it can be done on importing on Solid Works but doesn't seem to have the same facility in Onshape, the best I have so far is to export as an IGES file so that a sketch can be created around the part, but it still has no direct intersect with it so is pretty useless - open to ideas?
thanks as always
Ian.
Tagged:
1
Best Answers
-
brucebartlett Member, OS Professional, Mentor, User Group Leader Posts: 2,141 PROOnshape can import STL and use them as reference geometry which is a great feature for 3d scans that are not perfect geometry to start with. If you have geometry in STL (originally CAD modeled) and you want to get it into a BREP solid, Onshape can't do this yet. Try FreeCAD.6
-
tyler_pope Member, Developers Posts: 21 PROTo truly turn a stl into a solid model you need something like DesignX that will try to recognize features and guide you through recreating them from cross section sketches. It's not a one click procedure and leaves a lot of room for error if you're not careful.
Not trying to sell it, but have used it before.5
Answers
Twitter: @onshapetricks & @babart1977
Every vertex in the stl can be "used/projected onto a sketch" so depending on the complexity of what you want all may be good. What you can't do today is Boolean like operations between your part and the stl.
I've used this method a couple of times and had positive results, but it's certainly easier if you can find the model you wish to import in say a step or parasolid file.
Owen S.
HWM-Water Ltd
Not trying to sell it, but have used it before.
Are you talking about converting the file to a solid, or building around it?
Owen S.
HWM-Water Ltd
edit: I can import the STL in to OnShape and I can sketch a base but cannot get both the STL and the base to export to STL for my 3D printer. When I export all I get is the base sketch.
Here's a link to the part
https://cad.onshape.com/documents/129e3469b17c2a539db4cda9/w/a93e0ef521d8bc5fa8342388/e/98d592b54e945c6fcd39db9b
I tried this out and it does seem like what you're trying is not possible. Please contact support about this use case by pressing "Feedback" under the "?" menu in your part studio.
I've researched this a bit and few apps are supposed to be able to accomplish this but they have all failed me in some way. Would love to have this feature in OnShape as 3D printing is the future and STL mesh format is the default 3D print file.
Thanks
Would someone please write a feature script that converts a manifold Mesh (imported STL file) into a OS part.
Currently, only the vertices of the mesh are selectable for measurement, Use'ing and functions that accept points. If the mesh (faceted B-rep) was a "real" OS part then facets could be leveraged for operations requiring a plane and the facet edges could also be leveraged for operations that utilize a line/vector.
(I know it is possible to create a plane coincident with a mesh facet using the 3-point method, but it is rather tedious.)
The only issue I see is that an OS point is not just a simple XYZ coordinate, but has a planar quality (associated sketch plane) where there is some notion of an up/down direction.
Not quite correct
Meshes can be used for boolean operations, and the end result is a mesh
See forum post here and my Boolean FeatureScript here.
IR for AS/NZS 1100
HWM-Water Ltd
Open the STL in Meshlab and decimated down to 4950 faces or less. (If you convert it to quad- dominant it can be 9950 faces)
Export the STL
Open STL in Vectorworks
Convert to a Generic Solid; Modify>Convert>Convert to Generic Solid
Export the Generic Solid as Parasolid
Import into Onshape
This works most of the time except when the decimation causes faults. If faults occur I use Meshmixer to run a repair and then repeat the process.
Meshlab and Meshmixer are free but I'm afraid Vectorworks is not. I'm still trying to find a better method.
It took a long time to figure this out and I'm not sure why the face count needs to be below 5000 and 10000 (Tri or Quad)
Here is mouse that I able to cut about and hollow out
Hope this helps
HWM-Water Ltd
I believe the statement: "Currently, only the vertices of the mesh are selectable for measurement, Useing and functions that accept points" is still an accurate assessment of the current state of OS.
I read the referenced forum post (BOOLEAN INTERSECT WITH MESH) and looked at your custom FeatureScript Boolean Plus (2.4.8). The post states the functionality to boolean meshes has existed since 1.87 (Released 2018-10-20). In reality boolean of meshes is not currently supported via the standard OS Boolean feature; it is only available using your FeatureScript.
Impressive piece of scripting work, but as you point out the resultant is still a mesh and therefore has all the inherent limitations of mesh data in OS that exist today.
@owen_sparks
A faceted B-Rep that is recognized as a valid OS part has tremendous value in the design process where the only representation of an imported part is from an STL file. (Being able to instance a mesh into an assembly would be very beneficial.)
I believe you read too much into my plea for a FeatureScript wizard to create something that would make the STL facet data more usable in OS. My plea was more of an intellectual challenge directed towards FeatureScript experts out there. I was not asking for a conversion of the faceted representation into an equivalent part model of trimmed surfaces. However, it would be much appreciated if coplanar adjacent triangular STL facets are merged into N-sided facets to simplify (reduce) visual clutter and improve rendering/interaction performance.
@GWS50
Your persistence is impressive. I will check out the Meshlab and Vectorworks product. I have limited experience using Meshmixer. Not a real fan of "organic" mesh creation/manipulation tools.
IR for AS/NZS 1100
We exposed the ability to Boolean a solid with a mesh to FeatureScript as an initial exploration into having more built-in functionality around mesh manipulation. We understand this is a useful workflow and have more plans to explore these workflows in the future.