CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Meshing & Mesh Conversion

.dxf to .stl converter

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 8, 2010, 10:34
Default .dxf to .stl converter
  #1
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 9
colinB is on a distinguished road
Hi
I have a problem finding a program that converts dxf files into stl files.
After looking for several days at google and in this forum I basically found programs that can do this conversion the other way round, but never I got anything that did what I want.
If you know a software or a way to deal with that problem please let me know.
Over all aim is it do feed snappyHexMesh with a stl file, but our system just gives out the geometry in dxf files and we want to perform cfd calculations with this geometries.
So for the case that you know a way for this problem it would also be appreciated.
And a last note: I try not to spend any money on software.
thanks for your trouble
regards
colin
colinB is offline   Reply With Quote

Old   September 8, 2010, 11:23
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Colin,

ParaView can open some DXF files, although sometimes it isn't able to. And it can export to STL too

As for SketchUp, there is a plugin that can export to DXF or STL: http://www.guitar-list.com/download-...les-dxf-or-stl
As for importing DXF, I think only SketchUp PRO can import it

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 9, 2010, 07:56
Default
  #3
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 577
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Hi,

www.quick3d.com supports .dxf and .stl http://www.quick3d.com/features.html

http://www.meshlab.org/ is a nice tool as well but not .dxf => .stl but take a look
elvis is offline   Reply With Quote

Old   September 9, 2010, 08:32
Default python
  #4
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 46
Rep Power: 8
roth is on a distinguished road
If Python is more your style, perhaps:

http://code.google.com/p/meshmagick/...stl/dxf2stl.py

Mike
roth is offline   Reply With Quote

Old   September 10, 2010, 07:40
Default
  #5
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 9
colinB is on a distinguished road
Hi guys
thanks for your quick reply and your hints:

@wyldckat: This one I also found on my search, but I forgot to mention that I don't like google. They make proper things, but I don't like the fact that they store data and I don't know where else my files are than on my computer.

@elvis: Did I get that right that quick3d is commercial? they offer a download and a purchase link and so I wasn't sure if it is freeware or not.

@roth: That sounds what I'm looking for I'm not familiar with python so far but the more I get into OF the more I recognize the help python offers also with pyFoam.
But with pyFoam I still struggle with the installation since it doesn't like my VTK... but thats a different topic.

However thank you very much for your efforts, I really appreciate it

regards Colin
colinB is offline   Reply With Quote

Old   September 13, 2010, 08:14
Default
  #6
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 9
colinB is on a distinguished road
Hi
its me again.
I still have some troubles to get my dxf converted into a stl file.
I tried to use the python code but for some reason I didn't get along with it.

I executed as in the usage recommendation of the above linked code

Code:
 
dxf2stl.py infile.dxf > outfile.stl
in the python shell

and all I get is a file named for the above case outfile.stl
but in it I just find written

Code:
 ['infile.dxf ']
So I was wondering what I was doing wrong.
Any help is appreciated
regards Colin

Last edited by colinB; September 13, 2010 at 08:33. Reason: correction
colinB is offline   Reply With Quote

Old   September 13, 2010, 08:51
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Colin,

When I saw Mike's post, I went to browse that python script... and I figured that the script was still far from being complete. But never took the time to test if it was in fact doing some sort of magic and would actually convert dxf to stl.

So, by your report, I would say that my suspicions are correct: that python script is only a layout of the code and doesn't actually do any reading from DXF files You can try to contact the author of the repository!

By the way, have you tried open the DXF files in ParaView to see if it can handle your files?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 13, 2010, 09:20
Default
  #8
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 9
colinB is on a distinguished road
Hi Bruno

thats really annoying that it doesn't work and that it is just a layout.
I wondered actually that a converter would be just that short, but since I don't know python at all I couldn't judge whether this is just a layout or a complete program.

However I tried to use paraview for opening dxf files, but it cannot handle these.

But asking professional cfd-vendors I figured out that they also struggle with converting dxf files to a readable format for their solvers or that they just recently introduced a program with this ability, So I ask my self why nobody got that idea before, since many geometries first exist in kind of a Cad format and then are treated with a cfd solver.

regards Colin
colinB is offline   Reply With Quote

Old   September 13, 2010, 09:39
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Colin,

Well, the only two others that come to mind are also on this big list: http://en.wikipedia.org/wiki/ASCII_D...ge_file_format
In other words, BRL-CAD and Blender should be able to import DXF... although exporting is another issue, but I think these two can handle exporting to STL.

As for file conversion: there are so many standards defined by so many companies, that in 2010 we are still having issues with this simple kind of thing. The industry is pretty much money+patent oriented... just look at mobile phone chargers: brands can't even stick to one single charging system in their own phones!

Best regards and good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   September 13, 2010, 11:01
Default
  #10
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 9
colinB is on a distinguished road
Hi Bruno,
thanks for the hint with this software list and especially the hint with these two softwares blend I quickly installed and it struggled with exporting my dxf to stl file, maybe I have to check it tomorrow again.
BRL looks good so far but I haven't tested it yet.

Apart from that I found a list where CAD Softwares are compared which I want to share:

http://en.wikipedia.org/wiki/Comparison_of_CAD_software

thank you very much for your help Bruno

best regards
Colin
colinB is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.cfd-online.com/Forums/openfoam-meshing/79919-dxf-stl-converter.html
Posted By For Type Date
CAD model robot matlab - MATLAB Answers - MATLAB Central This thread Refback November 9, 2013 03:45

Similar Threads
Thread Thread Starter Forum Replies Last Post
.STL Geometry File MAB CFX 7 February 17, 2014 03:48
SnappyHexMesh .stl Jochem OpenFOAM 7 August 3, 2012 06:20
engrid -> save as .stl with boundarie codes Zymon enGrid 31 August 29, 2011 13:40
Problem with importing .stl file RJD Phoenics 5 May 15, 2010 03:18
Fluent about three way converter Shuailin FLUENT 0 November 9, 2005 21:51


All times are GMT -4. The time now is 08:58.