+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Senior Member SunnyTurtle's Avatar
    Computer Details
    SunnyTurtle's Computer Details
    Operating System:
    Win 10 64bit
    Discipline
    Civil
    SunnyTurtle's Discipline Details
    Occupation
    Drafter CAD
    Discipline
    Civil
    Details
    Rail, Roads, Civil
    Using
    AutoCAD 2018
    Join Date
    Apr 2011
    Location
    Sydney Australia
    Posts
    161

    Default Vault 2018 layer values reset when renaming Xrefs through vault

    Registered forum members do not see this ad.

    Hi Guys I had an issue with Vault 2018 (RTM) | Build 23.0.76.0 that i wanted to make people aware of.
    So I renamed Xrefs for some drawings. So I renamed Xrefs
    I did this though the rename wizard in vault. This worked without issue.
    But when I went to work in the drawing all the Xref layer setting had reset to match xref. Same as if VISRETAIN was set to 0 and you reloaded.
    After some consulting a forum I discover this was a known Issue with Vault 2018 and had be fixed in Vault Version 2018.2 | Build 23.2.3.0
    https://forums.autodesk.com/t5/vault...fs/m-p/7761413
    I am currently using Version Vault 2018 (RTM) | Build 23.0.76.0

    The solution is to get the latest version of Vault. but i am unable to do this at this time.
    So I came up with a work around

    So basically i discovered that the rename actually take place as you do a get on the drawings. So you can be quick and get the file before it rename/repaths the xrefs in the drawing.

    First you need to prepare a .bat file that loops like crazy
    Code:
    @echo off
    cls
    :start
    robocopy "drawing folder not xref folder" "copy folder" /XA:R /w:1 /r:1 /MINAGE:1
    REM pause
    goto start
    This will give you the files before they are renamed in the copy folder
    You then can rename/repath the old fashioned way.
    I used this lisp
    Code:
    (defun XrefRenameAndRepath (OldName NewPath NewName /)
    (if (ssget "X" (list
    			  (cons 0 "INSERT")
    			  (cons 2 OldName)
    			  ))
    (progn
    (command "-XREF" "P" OldName (STRCAT NewPath NewName))
    (command "-RENAME" "B" OldName NewName)
    ;(command "-XREF" "R" OldName)
    )
    (princ (strcat "\n" OldName " not found"))
    ) ;if
    ) ;XrefRenameAndRepath
    (princ "\nsubFunction Rename all and repath Xref loaded: (XrefRenameAndRepath) ")(princ)
    This code to batch on all drawings as a script or lisp
    Code:
    (XREFRENAMEANDREPATH oldName newNath newname)
    Then checkout the drawings replace them with the copys and Checkin.

    Just a quick write up of a challenging problem for me. Would love to here if anyone else is having the same problem
    Last edited by SunnyTurtle; 9th Feb 2018 at 05:36 am. Reason: didn't finish

Similar Threads

  1. Vault Projects - how to use projects & Vault successfully
    By Doove in forum Autodesk Inventor
    Replies: 3
    Last Post: 10th Feb 2015, 03:25 pm
  2. Vault: Pro's and Con's?
    By baker in forum AutoCAD Drawing Management & Output
    Replies: 1
    Last Post: 4th Dec 2014, 12:59 pm
  3. Vault?
    By DANIEL in forum AutoCAD General
    Replies: 8
    Last Post: 4th Aug 2014, 11:50 am
  4. Working with AutoCAD Xrefs and Autodesk Vault
    By Between the Lines in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 19th Feb 2014, 06:30 pm
  5. How to use Vault?
    By Be_cool in forum Autodesk Inventor
    Replies: 14
    Last Post: 26th Nov 2010, 12:56 pm

Bookmarks

Posting Permissions

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