how to get rid off SHX warnings in drawings

how to get rid off SHX warnings in drawings

rcaspersPUZBW
Participant Participant
623 Views
4 Replies
Message 1 of 5

how to get rid off SHX warnings in drawings

rcaspersPUZBW
Participant
Participant

I have some drawings who permanent say SHX not found.

I know its a (line) style, not been found, but how can i remove the shx missing objects 

0 Likes
Accepted solutions (3)
624 Views
4 Replies
Replies (4)
Message 2 of 5

cadffm
Consultant
Consultant

Hi,

 

Add the shx to your system

or

Change the object or layer linetype

or

not the best choice, disable the message (it's offered, or?)

Sebastian

Message 3 of 5

rcaspersPUZBW
Participant
Participant
Accepted solution

HI sebastian, thank you for your comment

 

Ignoring the messages is not the choice i wanna make. there's no tool or command to erase the object containing the SHX ?

 

Greetings, Ronald

0 Likes
Message 4 of 5

cadffm
Consultant
Consultant
Accepted solution

Hi,

 

In my opinion, that would be the most senseless approach,
why delete circles, lines and blocks?
That's why I suggested better alternatives,
although deactivation is certainly not the best.

Here, to find the linetypes in question.
Please reopen your file, load the code, run LTLIST,
press [F2] right click - copy protocoll.
Share [ctrl]+[v] in your reply

QSELECT or FILTER or STANDARDS will help to change ltypes.
In AutoCADs PURGE dialog, switch to non-purgable items,
you can see where a linetype is used.

 

 

(defun c:LTList (/ LT STYLE)
  (setq LT (tblnext "LTYPE" T))
  (while LT
    (terpri)
    (foreach ep (entget(tblobjname "LTYPE" (cdr(assoc 2 LT))))
      (cond
        ((= 2 (car ep))
         (terpri)(princ (cdr ep)))
        ((= 340 (car ep))
         (setq style (entget(cdr ep)))
         (princ (strcat "\n -->" (if (= "" (cdr(assoc 2 style))) "(unnamed)" (cdr(assoc 2 style))) "/" (cdr(assoc 3 style))))
         (if (and
               (not(wcmatch (strcase(cdr(assoc 3 style))) "*.TTF"))
               (not(findfile(strcat (cdr(assoc 3 style)) (if (wcmatch (strcase(cdr(assoc 3 style))) "*.SHX") "" ".shx"))))
             )
             (princ " (missing!!!)")
         ))
      )
    )
    (setq LT (tblnext "LTYPE"))
  )
 (princ)
)

 

Sebastian

0 Likes
Message 5 of 5

pendean
Community Legend
Community Legend
Accepted solution

@rcaspersPUZBW wrote:

I have some drawings who permanent say SHX not found.

I know its a (line) style, not been found, but how can i remove the shx missing objects 


You need to ask for those SHX 'shape' from the files creator for them. Sorry, there is no other miracle fix that is 100% foolproof. You could risk hunting for them on the WEB, or actually list them for others to try and help by sharing, but you chose to not go that far yet.

 

Not liking the truthful replies is totally fine, but it does not change the facts sadly.

 

How would you like to proceed?