OMEGA-ThundeR Posted June 17, 2009 Posted June 17, 2009 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. Quote
rkmcswain Posted June 17, 2009 Posted June 17, 2009 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. Quote
kheylan Posted June 18, 2009 Posted June 18, 2009 (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") 1 Quote
twistun Posted February 4, 2011 Posted February 4, 2011 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!!! Quote
dpolizzi81 Posted October 14, 2013 Posted October 14, 2013 Ripper lisp. Worked a treat. Thanks for that. Cheers Quote
Recommended Posts
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.