Jump to content

Recommended Posts

Posted

some how i have used a .shx file in my drawing...i have purged everything and have got rid of it but everytime i insert a particular block the pop-up comes up telling me that i am missing this .shx file.

 

i have gone to the block...it is a very simple block and purged it so that it doesn't see to show up there either but not sure what to do next.

Posted

Do you get the warning when you open the main drawing? Does the block already exist in that drawing or are you inserting the block from an external source when the message appears? I suspect a line style but I'm curious to find out. Can you post a copy of the drawing(s)?

Posted

Maybe it is looking for a shape file. Does the block contain any unusual linetypes?

Posted

it appears to be a shape file...apparently whoever created most of the blocks that i have been using...used a shape file called RHPID.shx, so if I don't have that shape file in the support path then i asks for it...i am currently working on some drawings for a client and i don't want this file to come up so trying to get rid of it...i have purged everything in the main drawing that i can..exited out and came back in and it doesn't ask about the RHPID.shx file...but as soon as i try to insert a simple block that i made that file message pops up...i have gone in the block itself and purged everything out of there to where i don't get that message on it either but when i insert it the message appears?

 

oh well...i deleted that block and re-created it...seems to be working correctly right now.

 

i wonder if there is a way to search for the RHPID.shx inside of a drawing and replace it with a standard .shx file?

 

Thanks,

Steve

Posted

it has re-appeared in the new block that was working fine yesterday?

 

i don't know how to paste a image in here.

 

Thanks,

Steve

Posted

An image will not do us any good. On the other hand a copy of the drawing file might. Attach one to your next post. Click on the Go Advanced button to start.

Posted

A copy of the drawing would be good. You could also try this routine I put together to tell you what file dependencies the linestyles definitions have

(defun c:ltfiles ( / lst2str a b c )

 (defun lst2str ( strlst )
   (if (cdr strlst)
     (strcat (strcase (car strlst)) ", " (lst2str (cdr strlst)))
     (strcase (car strlst))
     )
   )

 (setq b 0)
 (while (setq a (tblnext "LTYPE" (not a)))
   (setq b (1+ b))
   ((lambda ( ln / lst )
      (foreach styl (mapcar
                      'cdr
                      (vl-remove-if-not
                        '(lambda ( x )
                           (= (car x) 340)
                           )
                        (entget (tblobjname "LTYPE" ln))
                        )
                      )
        (foreach file (mapcar
                        'cdr
                        (vl-remove-if-not
                          '(lambda ( x )
                             (and (< 2 (car x) 5)
                                  (/= (cdr x) "")
                                  )
                             )
                          (entget styl)
                          )
                        )
          (if (not (member file lst))
            (setq lst (cons file lst))
            )
          )
        )
      (if lst
        (progn
          (setq c T)
          (princ (strcat "\nLinetype " ln " references file(s): " (lst2str lst)))
          )
        )
      )
     (cdr (assoc 2 a))
     )
   )
 (if c (textpage) (alert (strcat (itoa b) " linetypes processed & no shape files were found referenced.")))
 (princ)
 )

Posted

Thank you Clint...but I have no idea how to use the above code

 

Steve

Posted

Hi Steve,

 

Copy the text into a text editor and save it somewhere as "ltfiles.lsp" (the file name isn't actually important but for simplicity let's keep it the same as the command name).

Open the problem drawing in AutoCAD. "Drag and drop" the lisp file from explorer where you saved it onto the open AutoCAD drawing.

Alternatively, another good reference to look at for loading LISP files is here http://www.lee-mac.com/runlisp.html It gives you alternative methods of loading like APPLOAD.

 

Once loaded, type "ltfiles" at the command line. It will give you an indication of what shape files are referenced in the linetype definitions.

If you find "RHPID.shx" listed against a linetype definition (or definitions) then it will give you an idea of where to start to fix the problem.

If it doesn't get listed (or if you get an alert box telling you that no shape file references were found) then we will have to keep looking for it.

 

Let us know how you get on.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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