problems with .stl from OpenScad

problems with .stl from OpenScad

thepirate1
Enthusiast Enthusiast
3,494 Views
4 Replies
Message 1 of 5

problems with .stl from OpenScad

thepirate1
Enthusiast
Enthusiast

Dear Community: 

 

OpenScad should play well with F360, as it often creates very simple objects with few surfaces. For me not hinging works as it should. 

 

The only readable export file is .stl.  In these forums and in youtube videos, it should be easy to import such a .stl, then convert bodies to components (doesn't work).  Then you should be able to just right-click and change to Brep.  Doesn't work.  Tried again with the timeline explicitly off- still can't change anything. 

 

The most important thing for me to change is appearance - you apparently can't do that with the mesh.

 

Any help would be much appreciated. File appended. 

 

-TBP

 

0 Likes
Accepted solutions (1)
3,495 Views
4 Replies
Replies (4)
Message 2 of 5

nkloski
Collaborator
Collaborator

Any mesh you bring into Fusion is difficult to work with, as you have to convert it.  When you convert to BRep you can click on some faces (planar ones) and hit the delete key and some/most times Fusion will make all coplanar edges disappear.  

 

For some reason, the cylinders in your model did not do that, so I had to create a sketch on the broad faces of those cylinders, project the very edge points by zooming in and selecting the very edgemost point on two sides, then create a two-point circle, then extrude the new solid model cylinder up.  I actually extruded it up once and "cut the original cylinder away, then extruded a new cylinder up to take its place.

 

Should be all fixed...attaching file. 


Nick Kloski
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Message 3 of 5

thepirate1
Enthusiast
Enthusiast

Dear Nick:


Thank you very very much for so much hard work to help me out. You deserve it real thanks.

 

Why didn't I get back to you earlier?  I have many more parts to import, and some of them more complicated.  I really wanted to know how to fix this, and I think I have narrowed the problem down to two places: 

 

1) Cloud performance - I had lots of weird things going on with the cloud during those few days I was working on this

2) Extremely finicky importing - I found that if you do certain things if and only if you do them immediately after import, they work. 

 

So, I think I have figured these issues out, and I will do a follow-up post for the benefit of the community. 

 

Thanks again, 

 

-Bruce

 

0 Likes
Message 4 of 5

thepirate1
Enthusiast
Enthusiast
Accepted solution

ThePirateCaptain's Official Advice for importing STL files:

--------------------------------------------------------------------------


1. Make absolutely sure you are starting with an unmodified .stl that is untouched by F360.  
2. Import the .stl file to the cloud.
3. Immediately, before you do anything else, change the mode to model (It will be in Sculpt by default, I believe)
4. Immediately, before you do anything else, select the new components in the browser, and mouse down on it. Select convert to prep.
5. Check the units and size.  Weird things happen all the time here.

6. TEST that you can make an important edit, e.g. change the appearance or material.

7. Save this file immediately!!!

8. You can import into another design or start a new design from this file.  (On Mac, ctrl-click on the design listed in your project folder in data pane).

 

 

* The tricky part here is that when I did not do these things immediately after import, I was never able to convert or edit them. 

 

* This advice is appropriate for people who work in Model mode and design with simple geometry but want to import something simple, like simple geometric primitives from OpenScad. For those of you who sculpt and do meshes, I have no idea about these things, they are mysteries for me. 

 

Comments

----------------

Complex meshes, e.g. from scan data or stuff you pull off the web at random can be too complex for conversion to prep. You will get an error message about "too many [faces or triangles or something, I forget which]", and it will warn you that you are going to get 1e5 or 1e6 and that's just a mess.  HOWEVER, I got a warning on some of my imports and they worked fine anyway. Try it out, be prepared to give up and kill the process if it takes too long. 

 

There are many youtube videos on how to edit the surfaces of the converted brep objects. You may want to do this to proceed. (basically, they just delete lots of the lines (erm...whathcamacall em .. face boundries? they are lines so they can't be vertices) in the faces, and usually that turns out ok, sometimes not, so you have to go line-by-line)

 

***Importing stuff into F360, moving files back-and-forth is a huge weakness in CAD and 3D printing and scanning.  Hopefully you people out there smarter than me will build on this to write much better, more widely applicable documents, and hopefully the F360 folks will improve this situation with more converters.

 

2016 Dec. 07-09 I believe some of these features simply did not work correctly due to problems with the cloud. It could be worth waiting a couple days if things are acting unpredictably.

 

-TPC

Message 5 of 5

Anonymous
Not applicable

Sorry to resurrect an old thread, but I found an acceptable way to import OpenSCAD files into a fully editable Fusion360 body and I thought I would share in case it can help someone else.

 

  • Download OpenSCAD file and open in OpenSCAD (https://www.openscad.org/)
  • Export to .CSG in OpenSCAD
  • Download and install FreeCAD (https://www.freecadweb.org/)
  • Open the saved .CSG file in FreeCAD
  • Select the model in the model tab (mine was auto-named "Matrix_Union")
  • Go to File>Export (Ctrl+E) and Export to "STEP with colors (*.step, *.stp)" and save
  • Open Fusion360 and select File>Open (Ctrl+O)>"Open from my computer..."
  • Select the saved .step file and open
  • Now you should have a converted body that is able to be edited non-destructively