Hi all,
I guess some of you have seen this issue in the office... "Someone" has moved a file, renamed a folder or worse... The Data Shortcuts doesn't work anymore !! :-(
Some weeks ago our own Daniel Philbrick took his time and explained what happens to the .xml-files and links when a user error like this have happend.
So, to read and understand the following, think of it as an answer to a question "How do I fix the broken links" ;-)
-----
The following things should be considered when moving the data shortcut folder around the network (or folder).
1. First thing is to fix the absolute path in each data short.xml by using external program called “Data Shortcut Editor”.
As you see a sample xml file below which has <File name="C:\Civil 3D Projects\ShiftProfile\alignment.dwg" />. This need to be fixed, otherwise the shortcut mechanism will still point to old location and won’t show broken reference. Shortcut name should not be changed at all. Otherwise it will break the data reference object. The “Data Shortcut Editor” should take care of all issues.
<?xml version="1.0" ?>
- <!--
PLEASE DO NOT EDIT THIS FILE!
-->
- <ProjectInfo>
<ProjectDesc />
- <Shortcuts>
- <Shortcut name="C:\Civil 3D Projects\ShiftProfile\alignment.dwg:Alignment - (1)">
<DwgRelPath path=".\ShiftProfile\alignment.dwg" />
- <Criteria>
<File name="C:\Civil 3D Projects\ShiftProfile\alignment.dwg" />
<Object type="AeccDbAlignment" useType="-1" name="Alignment - (1)" useName="-1" version="0" useVersion="0" handleLow="18259" handleHigh="0" useHandle="-1" parentHandleHigh="0" parentHandleLow="0" />
<DisplayProperties layer="C-ROAD" useLayer="0" color="1" useColor="0" lineType="ByLayer" useLineType="0" lineWeight="-1" useLineWeight="0" />
</Criteria>
</Shortcut>
</Shortcuts>
</ProjectInfo>
2. In Prospector, use “Data Shortcuts->Set Working Folder…” to set a new working folder which has the “moved” shortcut folders (projects).
C3D will picks all folders under new working folder which has a subfolder called _Shortcuts. The information is stored in C:\Documents and Settings\<user>\Application Data\Autodesk\C3D 2009\enu\Project Management\ShortcutFolders.xml.
As you see below, you will have old working folder to new working folder.
<?xml version="1.0" ?>
- <WorkingFolders>
- <WorkingFolder path="\\Mansrvisd01\dataxfer\nge\MyShortcut" current="-1">
<ShortcutFolder path="\\Mansrvisd01\dataxfer\nge\MyShortcut\ShiftProfile" desc="" current="-1" />
</WorkingFolder>
- <WorkingFolder path="C:\Civil 3D Projects" current="0">
<ShortcutFolder path="C:\AutoCAD Civil Projects\aaa$\foo" desc="" current="-1" />
<ShortcutFolder path="C:\AutoCAD Civil Projects\aaa$\ssss" desc="" current="0" />
</WorkingFolder>
- <WorkingFolder path="C:\Civil 3D Projects" current="0">
<ShortcutFolder path="C:\Civil 3D Projects\ShiftProfile" desc="" current="-1" />
</WorkingFolder>
</WorkingFolders>
----
Thanks Dan !
// Ove