Jump to content

XREF Lisp routines


nnutting

Recommended Posts

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    11

  • Baber62

    6

  • alanjt

    3

  • nnutting

    3

Top Posters In This Topic

Posted Images

Yet when I use the XRR it does not load the x-references? Is there some setting that I am missing?

 

The External References list in your image looks huge with a vast number of unreferenced image files; are there perhaps other XRefs further down the list that are not found?

 

Here is a 'verbose' version of the program to inform you of the status of each XRef encountered:

(defun c:xrr ( / err )
   (vlax-for block (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
       (if (= :vlax-true (vla-get-isxref block))
           (if (findfile (vla-get-path block))
               (if (vl-catch-all-error-p (setq err (vl-catch-all-apply 'vla-reload (list block))))
                   (princ
                       (strcat "\nError reloading XRef '"
                           (vla-get-name block) "': "
                           (vl-catch-all-error-message err)
                       )
                   )
                   (princ (strcat "\nXRef '" (vla-get-name block) "' reloaded successfully."))
               )
               (princ (strcat "\nXRef '" (vla-get-name block) "' not found."))
           )
       )
   )
   (princ)
)
(vl-load-com) (princ)

Link to comment
Share on other sites

  • 3 months later...

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