PDA

View Full Version : Decompile SHX files?



chulse
18th Aug 2010, 01:29 pm
I can't seem to locate a tool to decompile SHX files. The express tool DUMPSHX doesn't seem to exist in C3D 2011 and I have not been able to find the SHX2SHP.exe tool I have read about. :(

Specifically, what I am wanting to do is merge several shx (shape, not font) files into a single one. I have a few with the same name but different contents and I want to correct that.

Anyone know of a way to do this?

Thanks

eldon
18th Aug 2010, 01:37 pm
The programme to decompile SHX files (dumpshx.exe) always used to be run from the OS command line, and not in AutoCAD.

Have a look for the executable programme in the support folder. I would be saddened if they had taken away such a useful tool :cry:

rkmcswain
18th Aug 2010, 01:47 pm
... I have not been able to find the SHX2SHP.exe tool I have read about.
A quick google search found this copy: http://cdn.simtel.net/pub/simtel/00/04/04/58/shx2shp.zip

chulse
18th Aug 2010, 02:07 pm
A quick google search found this copy: http://cdn.simtel.net/pub/simtel/00/04/04/58/shx2shp.zip

I guess I need to go back to Google, Bing didn't come up with that one...

I am searching for the dumpshx also, but have not found it on my machine yet.

Thanks to both of you

chulse
18th Aug 2010, 02:13 pm
... ok, the search did eventually find DUMPSHX.EXE in the install folder.

Thanks again.

chulse
18th Aug 2010, 02:30 pm
Well, to add further to this - the DUMPSHX.exe returns a windows error and will not run.:(

eldon
18th Aug 2010, 06:06 pm
Well, to add further to this - the DUMPSHX.exe returns a windows error and will not run.:(

It was probably written to run in DOS. Is your OS too far updated?

chulse
18th Aug 2010, 06:17 pm
I don't know. I have XP pro with all the updates...

The SHX2SHP.exe worked a treat though.

chulse
19th Aug 2010, 11:49 am
Ok now I have a new issue with this. I have decompiled "ltypeshp.shx", but I cannot get the COMPILE command to reverse the process (I have made no changes to the shp that was created). I get the following error:



Command: COMPILE
Compiling shape/font description file
Bad shape definition at line 10 of Y:\2010\709 Lucerne
Cayucos\dwg\civil\LTYPESHP.shp:
Invalid octant spec 3C


This is the first 10 lines of the shp:


*130,6,TRACK1
014,2,01c,1,01c,0
*131,3,ZIG
012,01e,0
*132,6,BOX
014,020,02c,028,014,0
*133,4,CIRC1
10,(1,-64),0
*134,6,BAT
025,10,(2,-60),02b,0

Does anyone know what the error code means exactly and how to correct it?

Thanks again

eldon
19th Aug 2010, 12:21 pm
I don't know how to correct your fault, but I did a bit of ferreting in the support folder, and found that I had ltypeshp.shp already as well as the ltypeshp.shx.


;;;
; (C) Copyright 1997 by Autodesk, Inc.
;;; ltypeshp.SHP - shapes for complex linetypes
;;;

*130,6,TRACK1
014,002,01C,001,01C,0

*131,3,ZIG
012,01E,0

*132,6,BOX
014,020,02C,028,014,0

*133,4,CIRC1
10,1,-040,0

*134,6,BAT
025,10,2,-044,02B,0


It looks a bit different to yours.

chulse
19th Aug 2010, 12:45 pm
That seemed to work, thanks.
I guess the SHX2SHP decompiler isn't the same as the built-in version. I wish I knew why DUMPSHX doesn't work for me...