Jump to content
SunnyTurtle

Vault 2018 layer values reset when renaming Xrefs through vault

Recommended Posts

SunnyTurtle

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-forum/vault-removes-xref-layer-overrides-when-renaming-xrefs/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

@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

(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

(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

Edited by SunnyTurtle
didn't finish

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×