Jump to content

Vault 2018 layer values reset when renaming Xrefs through vault


SunnyTurtle

Recommended Posts

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
Link to comment
Share on other sites

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