Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting a dxf file into csv or ascii file

Status
Not open for further replies.

gnmpcmx1

Industrial
Oct 22, 2001
2
I am very interested on knowing how I can convert a dxf file into a csv or ascii file. I'd use this information into a gas network simulation tool.
 
Replies continue below

Recommended for you

Yes it is ascii, but not very useful to the average punter, since it needs to be decoded into coordinate pairs, rather than alternate lines of argument descriptors and arguments.

If gnmp really wants to see how to decode a dxf file then if you email me on greglocock at yahoo.com.au I'll send you a qbasic program that extracts lines, only, and displays them. Alternatively look up the reference material in the appendix on dxf files, in the Autocad manual, which gives you a few hints to write your own program, and some sample code. Cheers

Greg Locock
 
A little late I know - but if you are still looking for an easy answer to this there is a freeware program called DXF2XYZ available from Soilvision.com (I think)
 
hi
does anyone know any program that does the opposite of what DXF2XYZ does?
thank you
peter
 
peter2 -
Can you be more specific? Do you have a list of points you want to make a dxf file from? If not, then what?
 
I have an ascii formatted file containing a big square matrix. I would like to convert it into a DXF (or DWG)file with a group of points whose z coordinate is the number in the matrix and the x, y coordinates equal and set by me in any possible way (these don't really matter, the important thing is the z-coordinate)
thanks
excuse my english..... ;-)

peter
 
Peter

I have a routine that with a little modification should do what you want. It takes a tab or comma delimitted file in the order point number, northing, easting, elevation, and point code and imports nodes at those locations. If that is what you are looking for, let me know. If I understand you correctly, you want what is basically the point number set as the elevation in your drawing. That could be done without changing the routine. Simply by moving the point number into the fourth column of your text file would make that your elevation in the drawing.

Scott
 
great!
did you make an exe file out of that routine?
can i try it?
thanks a lot!
see you
 
It's a lisp routine, runs inside autocad. If you want, send me your text file and I can send you a dwg to see if it is what you need.

smurrison @cox.net

scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor