DXF2EPA - AutoCad DXF File Conversion Utility for EPANET

Back in May 2001, Lewis Rossman, author of EPANET, released a small utility to convert dxf files to EPANET format. After a little time he announced that the EPA will not continue to distribute and support the utility.

A few days ago I found the file in my old computer and thought that people may find it useful. So here is a short description form the utility manual and a download link:

“DXF2EPA is a Windows utility program that converts a line drawing of a pipe network stored in Autodesk’s DXF file format into an input data file that can be read by the EPANET water distribution system analysis program. It converts all of the line and polyline elements in selected layers of the DXF drawing into a set of pipes and junctions for EPANET, with all coordinates and vertex points intact. Additional elements, such as reservoirs, tanks, pumps, and valves, have to be added to the EPANET model by hand. Although the conversion program can compute pipe lengths if so desired, other network data, such as junction elevations and demands, and pipe diameters and roughness values have to be edited within EPANET after the converted file is loaded.”

dxf2epa conversion utility

Download dxf2epa.zip (~147 KB)







28 Responses to 'DXF2EPA - AutoCad DXF File Conversion Utility for EPANET'

  1. yjych - June 17th, 2005 at 7:06 am

    thanks a lot,it’s very useful for me.
    your’s

  2. taukhid - July 7th, 2005 at 4:14 pm

    thank.
    but there is which I not yet know. I make a map of water pipe network of is including data of elevasi node. with process of gps continue to mapsource continue to autocad by using my DXF2EPA of convert to epanet for the simulation of network system
    **** what become question of me why dimension size measure of layer epanet kordinat cannot synchronize autocad, we try dimension setting in epanet remain to cannot become for node in epanet each other crosslegged do not as good as which in autocad
    help ……….. thank

  3. saddam - July 21st, 2005 at 7:18 am

    Thanks alot…. Keep us updated with such tools

  4. Robert - August 2nd, 2005 at 7:11 am

    Hi, thanks a lot for you valuable help!, but after I tried the dxf2epa, I have problems with the dxf file, so the program show the follow message at the end of the process: “ERROR: Illegal numerical value in DXF file”. I´ve tried many ways and alway get the same error!, do you know what happens?.

    Thanks,

  5. Elad - August 2nd, 2005 at 7:22 am

    Robert:

    I don’t have to much experience with this tool. You want to try and post your question on the forum here:
    http://www.water-simulation.com/wsp/bb

    Maybe someone will have the answer you seek.

    Elad

  6. nabil - September 8th, 2005 at 11:08 am

    Hi, thinks a lot.
    If u want, i can send my programs that i develop for converting dxf to epanet (it can calculate lenght for each polyline..)
    have a nice day

  7. Boualem - September 23rd, 2005 at 12:13 pm

    Nabil

    I will be very grateful if you could send me the programs to convert DXF into Epanet. I will then send you my feedback.

    best regards

    Boualem

  8. Zahid - September 28th, 2005 at 7:14 pm

    Hi folks, I have been able to transfer data from waterCad to Epanet. It only transferred the network diagram in a messed up form. The problem is the hydraulic data like demands and elevations, is there any way to transfer that. Because the date which was transferred does not have any data. Plz help coz i have to submit my design very soon.

  9. Evert - December 8th, 2005 at 9:09 am

    Thanks for this usefull utility

  10. feromon - December 14th, 2005 at 11:08 am

    I have converted dxf file to epanet *.inp but I cant see it on the monitor. probably the coordinates does not corespondent. Could enyone tell me how to fix that problem

  11. JOÃO REIS - December 19th, 2005 at 8:17 pm

    Hi, After I tried the dxf2epa, I have problems with the dxf file, so the program show the follow message at the end of the process: “ERROR: Illegal numerical value in DXF file”. I´ve tried many ways and alway get the same error!, do you know what happens?.

  12. Elad - December 20th, 2005 at 7:35 am

    JOÃO,

    Did you try different versions of the DXF?

  13. JOÃO REIS - December 28th, 2005 at 12:59 pm

    I have converted dxf file to epanet *.inp but I cant see it on the monitor. Could enyone tell me how to fix that problem

  14. Klebber Formiga - February 2nd, 2006 at 1:43 am

    The problem is that the INP file is empty. I have this problem with all my dxf files, including that exported by EPANET.

  15. Elad - February 2nd, 2006 at 7:31 am

    Klebber:

    If you send me your dxf I can try and help you.

    send it to: selad (at) optiwater.com

  16. Gabe - March 20th, 2006 at 5:31 pm

    Thanks a lot for posting/hosting this file. I tried unsuccessfully to hunt this down over 2 years ago, even going as far as contacting Lewis Rossman himself if I remember correctly. Thanks to google, and a “what the heck, lets check again” mentality I have found it. I have not tried it yet, but I am sure I will find it most useful. Thanks again.

  17. lidija - March 21st, 2006 at 10:51 am

    dear Joao Reis

    How did You manage to convert dxf file into epanet. I am receiving the same message: illegal numerical value in dxf file. If U tried different version of dxf please describe

  18. piji - March 31st, 2006 at 9:48 am

    I have succefully converted a dxf networt into an epanet .inp file but the result is just a long line with many nodes. Can someone help me.
    thanks

  19. thinh - November 25th, 2006 at 9:06 pm

    hi i want a serial of mike net! you can help me?
    I thanks !!!!

  20. luke - November 29th, 2006 at 3:49 pm

    Thanks saved me a lot of work !

  21. tari ahmed - January 27th, 2007 at 4:17 pm

    I have succefully converted a dxf networt into an epanet .inp file but the result is just a long line with many nodes. Can someone help me.
    thanks .

  22. salma - February 3rd, 2007 at 10:18 am

    i want the gisred script freely

  23. MattJ - February 13th, 2007 at 8:20 am

    I am trying to import information from MapInfo into EPANet after exporting it to dxf. I wish to increase the decimal place accuracy as it currently comes across to the nearest 10 metres. I would like this to the milimetre (or centimetre at the least). Any chance that anyone has a solution to this problem or the source code so i can modify it myself. Other than that, a fantastic util.

  24. Faisal Mateen - March 11th, 2007 at 10:30 am

    Its really very helping tool and reduced a tedious worrk to draw a network on backdrop map for an engineer. However, the prorame must be updated to also pick the arcs from Autocad map in addition to Lines and poly lines.
    Tanks,

  25. leo caguimbal - March 22nd, 2007 at 7:50 am

    you guys are so great! this is very helpful

  26. CHIRANJEEVI - May 30th, 2007 at 9:13 am

    DEAR FRIENDS,

    DONT WORRY. THIS IS FOR THOSE WHO ARE GETTING A BLANK .INP FILE AS OUTPUT. I TOO HAD THE SAME PROB. BUT AFTER MY PERFECT EXPERIMENT I FOUND THE RESULT. JUST WHILE SAVING THE DXF FILE SAVE IT TO THE R12/R14/ VERSION DXF FILE. THIS WILL MAKE THE THINGS EXACLTY AND PERFECTLY INTO WORK.

    MERA BHARAT MAHAN… JAI HIND.

  27. Jay - July 3rd, 2007 at 11:46 am

    Hi, Very useful tool, has so far saved an awful lot of work. Is there any utility or a modified script for this package that can convert the “z” coordinate in the original DXF drawing into the elevation field for EpaNet? Been looking at translating the DXF text file into the INP databse file and wondered if I could save an awful lot of time and effort if it already existed. Thanks

  28. pedro vidigal - December 10th, 2007 at 5:57 pm

    i am looking for some help!!
    i am making an application to simulate and organizate the information about pressure and velocity for 50 network models. i am using C++ and i have several problems with epanet toolkit.
    i would like to know how can i extract the velocity and pressure using tha toolkit.
    i would like to know tha best way to organize that information.


Leave a Reply