Thank you for your help. I´ll try to get dxf2svg-inkscape running, as soon I can spare some time for it. I´m sure, for small dxf-files it will be useful for my kind of work.
Let me just recall what what made me starting this discussion about dxf: - With a 3D-Cad tool (in my case SolidWorks) I rotate the model into a wanted view. - From SolidWorks I export a black-white-line vektor drawing (dxf) - Convert it to svg - Import it into Inkscape However this approach, as Denis has confirmed, does produce quite a large number of objects. But all I want is a few vektor lines.
This is why I was trying a different approach via "Tracing a bitmap": - With a 3D-Cad tool(in my case SolidWorks)I rotate the model into a wanted view. - From SolidWorks I export a black-white-line bitmap drawing (.tiff-File, high resolution) - Import the tiff into inkscape - Auto trace the black-white-line bitmap drawing Visually I do get an identical vector drawing. However the trace has then again generated a large number of objects. This time a large number of filled surfaces, very awkward to manipulate. But all I want are a few vektor strokes.
Is Inkscapes tracing tool capable of generating just strokes?? I simply coudn´t find a way to get it done? For each black line in my bitmap, I just want generate just a single vector stroke out of a black bitmap stroke. Is there a tracing tool that can do this kind of thing?
Denis inkscape-user-bounces@lists.sourceforge.net schrieb am 09.06.2007 11:51:10:
Very well,
I've found two versions of dxf2svg: http://sourceforge.net/projects/dxf2svg and http://sourceforge.net/projects/dxf-svg-convert/
The 'non-inkscape' one produced results that... well, they could *perhaps* be usable if you are willing to spend a lot of time setting correctly the strokes and fills.
The '-inkscape' one, I had to download from the CVS and compile it. It can be installed as an Inkscape extension or used from the command line.
The .DXF that Marcel sent me would give an error when I tried to import the DXF directly into Inkscape. However, if I previously invoke the dxf2svg from the commandd line:
denis@...2285...:~$ dxf2svg input.dxf > output.svg
It generates a valid SVG. Trying to load it into inkscape throws an error again, and the stderr of Inkscape reveals it is because of a dieresis (Ä) in the SVG file, which is not declared as utf-8. I removed the Ä from the file, and Inkscape was able to load the SVG flawlessly.
I fiddled with the resultant SVG (indeed, a bit short of 1000 shapes), and produced the PNG output that I am attaching. It's not *exactly* like
the one Marcel sent to the list. Mainly, the screw-like lines on the leftmost gray piece weren't generated in my run of dxf2svg.
dxf2svg seems to generate every single line of the original drawing as an object. This is operative, but not much, because when I wanted to colour in grey the two pieces, I had to trace them manually with the bezier tool (not much work either).
At any rate, the program never crashed on me, or gave any errors (other than the dieresis one), although it was somewhat slow (but usable). I'm using Inkscape 45 on Debian (iBook G4, 512 MB RAM) mind you --- I wouldn't be surprised if the Windows version were less efficient and more crash-prone.
To sum up:
- dxf2svg-inkscape seems to be usable, if a bit rough.
- Doesn't handle well non-ASCII characters: avoid them.
- Generates many objects, hence careful if your Inkscape installation is
crash-prone.
I hope that helps?
Denís.
-- ########################### # Denís Fernández Cabrera # # denis@...2126... # # gatonegro.ceibes.org # ###########################
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Lindauer DORNIER GmbH Rickenbacher Str. 119 88129 Lindau / Germany Phone: +49 8382 703-0 Fax: +49 8382 703-4 15 webmaster@...2272... http://www.lindauerdornier.com
Commercial Registry: HR Kempten Nr. B/1220
Chairman of the Supervisory Board: Prof. Dr. Dieter Feddersen, Managing Directors: Peter D. Dornier (CEO), Michael Ebeling, Dr. Andreas Rutz, Hans-Jürgen Schmidt (CFO)