Jump to content
chulse

Decompile SHX files?

Recommended Posts

chulse

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

Share this post


Link to post
Share on other sites
eldon

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:

Share this post


Link to post
Share on other sites
chulse

... ok, the search did eventually find DUMPSHX.EXE in the install folder.

 

Thanks again.

Share this post


Link to post
Share on other sites
chulse

Well, to add further to this - the DUMPSHX.exe returns a windows error and will not run.:(

Share this post


Link to post
Share on other sites
eldon
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?

Share this post


Link to post
Share on other sites
chulse

I don't know. I have XP pro with all the updates...

 

The SHX2SHP.exe worked a treat though.

Edited by chulse

Share this post


Link to post
Share on other sites
chulse

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

Share this post


Link to post
Share on other sites
eldon

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.

Share this post


Link to post
Share on other sites
chulse

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...