Jump to content
OMEGA-ThundeR

remove unknown SHX files

Recommended Posts

OMEGA-ThundeR

Hi,

 

When i load thirdparty drawings or DWG files exported from DGN most of the times the DWG loads and ask a few times to load some SHX shape files.

 

Is there an way to delete those files from the drawing so that it just loads?

 

We never use those SHX files, and i personally find it a very anoying msg. With a couple of different xrefs there is sometimes up to 6 of those boxes which i just select 'cancel' since i don't have those files.

Share this post


Link to post
Share on other sites
rkmcswain

You can purge unreferenced shape files.

If they are referenced, then you need to delete the reference first.

SuperPurge from http://www.manusoft.com can automate the latter.

Share this post


Link to post
Share on other sites
kheylan
(defun C:RSHX ()
 (vl-load-com)
 (vlax-for item
        (vla-get-textstyles
          (vla-get-ActiveDocument (vlax-get-acad-object))
        )
   (if
     (not
   (vl-filename-extension (setq fname (vla-get-fontfile item)))
     )
      (setq fname (strcat fname ".shx"))
   )
   (cond ((findfile fname) nil)
     ((findfile (strcat (getenv "WINDIR") "\\FONTS\\" fname))
      nil
     )
     (t
      (vla-put-fontfile item "ltypeshp.shx")
      (princ "\nChange ")
      (princ fname)
      (princ " on ltypeshp.shx")
     )
   )
 )
 (princ)
)
(princ "\nRSHX , purge unreferenced shape files")

Share this post


Link to post
Share on other sites
twistun

Over a year after your post I came across and used your little lisp routine for removing those pesky .SHX files and it worked like a charm. You get a big atta boy from me! Nothing else I tried worked; not SUPERPURGE; not deleting the reference; nothing worked. But your lisp routine did. Thanks!!!

Share this post


Link to post
Share on other sites
dpolizzi81

Ripper lisp. Worked a treat.

 

Thanks for that.

 

Cheers

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