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.

  1. Browse to the Express Tools directory using Windows Explorer (~ C:\Program Files\Autodesk\AutoCAD 2014\Express) and find a file named "dumpshx.exe".
  2. Copy this file to a new empty directory, I'll use Q:\Temp.
  3. Copy your shape file into this directory also.
  4. Press the Win+R key combination (Win Key + the "R" key) to open the Run dialog.
  5. Enter CMD and press <enter> to open a Windows command prompt.
  6. Navigate to the directory where you placed the .EXE and .SHX files
  7. 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.)

  8. 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.

Comments

Extremely helpful! Thank you.

 


All content is copyright © CAD PANACEA 2005-2013 unless otherwise noted and may not be reproduced. All comments posted to this blog are the sole responsibility of the person making the comment.

Google, as a third party vendor, uses cookies to serve ads on this site. Google's use of their cookies enables it to serve ads to users based on their visit to your sites and other sites on the Internet. You may opt out of the use of these cookies by visiting the Google ad and content network privacy policy.

Powered by Drupal