Converting AutoCAD SHX to SHP
If you have an AutoCAD shape file (.SHX) and you want to make changes to it, you will need the source file (.SHP) from which is was created. If you do not have the source file, there is a way to convert the .SHX to .SHP if you have Express Tools installed with your copy of AutoCAD.
- Browse to the Express Tools directory using Windows Explorer (~ C:\Program Files\Autodesk\AutoCAD 2014\Express) and find a file named "dumpshx.exe".
- Copy this file to a new empty directory, I'll use Q:\Temp.
- Copy your shape file into this directory also.
- Press the Win+R key combination (Win Key + the "R" key) to open the Run dialog.
- Enter CMD and press <enter> to open a Windows command prompt.
- Navigate to the directory where you placed the .EXE and .SHX files
- Now enter the following syntax: dumpshx myshapefile.shx > myshapefile.shp (NOTE: The first element, "dumpshx" is the executable file, the second element is the name of the SHX file, the ">" tells the executable to redirect the output, and the final element is the name of the file to create.)
- This will capture the output from the command into the file shapefile.shp
Now, you can make any changes you want to this file. Here is a guide to the shape file format. When you are done making your changes, you can recompile the SHP into an SHX file using the AutoCAD command COMPILE.
Note that dumpshx.exe works with Windows 7 64-bit. There is an similar, older program that you may find floating around the Internet named SHX2SHP.exe that will work on 32-bit operating systems but will not work on 64-bit operating systems. Thanks to Kean Walmsley for his assistance with the 32-bit vs. 64-bit issue.