Hi Matthias, we have a very basic dxf to geo converter in utils/converters/autocad/dxf2geo.cpp :
... ... // This is a simple AutoCAD DXF to Gmsh GEO Data File Converter // // It was created from the AutoCAD DXF file to DKB data file converter // written and placed in the public domain 8/13/90 by Aaron // A. Collins (http://www.sdsc.edu/~mjb/mae152/dxf.spec.txt). // // It parses a limited, but useful, subset of the AutoCAD DXF file // format. No effort has been made to handle the complete range of // possible DXF opcodes and commands. ... ... Cheers, Dave -- David Colignon, Ph.D. Collaborateur Logistique du F.R.S.-FNRS CÉCI - Consortium des Équipements de Calcul Intensif ACE - Applied & Computational Electromagnetics Sart-Tilman B28 Université de Liège 4000 Liège - BELGIQUE Tél: +32 (0)4 366 37 32 Fax: +32 (0)4 366 29 10 WWW: http://hpc.montefiore.ulg.ac.be/ Agenda: http://www.google.com/calendar/embed?src=david.colignon%40gmail.com Zenker, Dr. Matthias wrote: > Hi, > > I need to import 2D data generated as cuts from a 3D model in > SolidWorks. One possibility would be to define a cut in SolidWorks and > export it as dxf (AutoCAD format). But it seems like gmsh is not able to > read dxf. Is there something I am missing (I just tried File->Open in > gmsh, it gave me a an error message)? Or what would be the best > (quickest) way to get the cut into gmsh? Is there any 2D vector format > it can read? > > The way I have done it before is to take a slice instead of a cut, > export it to STEP format, import it into gmsh and delete manually all > volumes, surfaces, lines and points in the 3rd dimension, which can be > very tedious for complex geometries. > > Any suggestions would be welcome. > > BTW, is there a complete list of all formats gmsh can read and write? I > have not found it in the manual, but I may have overlooked it... > > Thanks, > > Matthias > > ---------------------------------------------------------------- > ERBE Elektromedizin GmbH > Dr.rer.nat. Matthias Zenker > Dipl. Phys. > Grundlagenentwicklung Technologie > Waldhoernlestrasse 17 > 72072 Tuebingen > Phone + 49 7071 - 755 226 > Fax + 49 7071 - 755 5226 > _mailto:[email protected]_ > _www.ERBE-med.de_ <file://www.ERBE-med.de> > ---------------------------------------------------------------- > > > > > > ERBE Elektromedizin GmbH > Firmensitz: 72072 Tuebingen > Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede > Registergericht: Stuttgart HRB 380137 > > > > ------------------------------------------------------------------------ > > _______________________________________________ > gmsh mailing list > [email protected] > http://www.geuz.org/mailman/listinfo/gmsh _______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
