×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Converting a dxf file into csv or ascii file

Converting a dxf file into csv or ascii file

Converting a dxf file into csv or ascii file

(OP)
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.

RE: Converting a dxf file into csv or ascii file

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

RE: Converting a dxf file into csv or ascii file

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)

RE: Converting a dxf file into csv or ascii file

hi
does anyone know any program that does the opposite of what DXF2XYZ does?
thank you
peter

RE: Converting a dxf file into csv or ascii file

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?  

RE: Converting a dxf file into csv or ascii file

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

RE: Converting a dxf file into csv or ascii file

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

RE: Converting a dxf file into csv or ascii file

great!
did you make an exe file out of that routine?
can i try it?
thanks a lot!
see you

RE: Converting a dxf file into csv or ascii file

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close