Results 1 to 2 of 2

Thread: XREF "Saved Path" to "Found at" location

  1. #1
    Member cadmancando's Avatar
    Join Date
    2015-11
    Location
    Arlington, WA
    Posts
    24
    Login to Give a bone
    0

    Default XREF "Saved Path" to "Found at" location

    I'd like to change the XREF(s) "Saved Path" to the "Found at" location using LISP.

    I know I can do it by using CLASSICXREF ... "Saved Path" button, but would like to do it at startup via LISP.

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,714
    Login to Give a bone
    0

    Default Re: XREF "Saved Path" to "Found at" location

    Give this a try:

    Code:
    ;;;--------------------------------------------------------------------;
    ;;; XrefPaths fundtion:
    (defun XrefPaths  ()
      (vl-load-com)
      ((lambda (acDoc / oBlocks oXref)
         (vlax-for oItem  (vla-get-filedependencies acDoc)
           (if (and (= "Acad:XRef" (vla-get-feature oItem))
                    (setq oXref
                           (vla-item
                             (cond
                               (oBlocks)
                               ((setq oBlocks (vla-get-blocks acDoc))))
                             (vl-filename-base (vla-get-filename oItem)))))
             (vla-put-path oXref (vla-get-fullfilename oItem)))))
        (vla-get-activedocument (vlax-get-acad-object)))
      (princ))
    ;;;--------------------------------------------------------------------;
    ;;; Autorun XrefPaths fundtion:
    (XrefPaths)
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. 2014: "Operation could not be completed" -> "File not saved"
    By Andre Voss in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 4
    Last Post: 2014-02-21, 05:59 PM
  2. Replies: 2
    Last Post: 2012-08-21, 02:58 PM
  3. Replies: 0
    Last Post: 2012-06-06, 11:54 AM
  4. How to show "last printed" or "path" text in layout
    By cstone in forum AutoCAD General
    Replies: 3
    Last Post: 2008-11-29, 12:05 AM
  5. "central location cannot be found" error message
    By Revitator in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 4
    Last Post: 2006-05-02, 04:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •