Rogue Pipes Catalog path


How many times are you called over for pipe network “issues” only to find out that the catalog path has somehow been changed from the network share to the local cache?

** Wrong catalog path **

We could open this dialog, browse for the right location, select it, and click OK. But where’s the fun in that?

One solution is to create a registry key that resets the correct value, place that key file on the network and send a link to create a desktop shortcut pointing to this registry file.  Then, users can double click that desktop icon to reset the pipe catalog path.  Easy peasy as my girls like to say…  But, how do you do all of that?  Let’s dive in.

First the registry key.

The key we’re looking for is found under HKEY_Current_User\Software\Autodesk\AutoCAD.

Next comes the version. If you’re on 2010, then you dive into R18.0 or if you’re on 2011 then dive into R18.1. So now your path looks like this with 2011:

HKEY_Current_User\Software\Autodesk\AutoCAD\R18.1

If you have more than one 2011 application installed, they will all be listed here. Here’s a snapshot of my laptop:

Civil 3D happens to be ACAD-9000:409. Our path is now;

HKEY_Current_User\Software\Autodesk\AutoCAD\R18.1\ACAD-9000:409\

Now that were at the specific version and flavor of AutoCAD, we need to find the actual key. It’s buried in the profile keys; which may be another reason why the path is different than your company default. Here’s the rest of the path;

HKEY_Current_User\Software\Autodesk\AutoCAD\R18.1\ACAD-9000:409\Profiles\{Profile Name}\Preferences\AeccUiNetwork80

Once here, we are looking revise each key.  It’s value should include the network resource location.

The simplest fashion to create this external key file is to make the change in Civil 3D, open Regedit and right click on the “AeccUiNetwork80” folder and select Export. Pick a place to save the key file and you’re almost done!

Now, make sure to revise the directory location in the key file before you export OR just open the key file in a text editor, do a ‘Find and Replace’ to correct the value. Notice that the network file path requires double backslashes to resolve correctly.

Next step create the batch file.

What we want a batch routine that copies that shortcut to the desktop for users to double click if and when this happens again.

The contents of the batch file might look like this:

echo off

:CopyICON
REM —– Copy Icon —–
c:
cd %userprofile%\desktop
if not exist “2011 Pipe Catalog Reset.lnk” goto CLEAN
del “2011 Pipe Catalog Reset.lnk”

:CLEAN
copy “I:\Civil3D\_Admin\BAT\2011 Pipe Catalog Reset.lnk” c:

:END

The batch above will remove an existing shortcut in case it may have been modified and replaced with the shortcut stored on the network.

This batch routine is then what will be linked in the email you send to your staff.

Third, we need a shortcut that will point to the registry key file.

Side note: why do we do this?  Primarily because most email programs block .REG file attachments as that is an easy way for malware/spyware/any crapware to infest your system.  Also, including a shortcut in an email has the same effect of being blocked.

To create the shortcut, right click on the registry key file already located on the network share and select “Create Shortcut.” You may want to rename it to something shorter for clarity sake.

Last, create an email.

Create an email, type some text in the email, select a word you want them to click, then right click and select hyperlink and paste in the shortcut network path and filename and click OK. Send the email out and when users respond, they will get a new desktop shortcut they can click themselves to fix the problem.

To sum up, the user gets an email with a link. The link copies a shortcut to the desktop. The shortcut triggers the registry key being updated. When that happens, a warning comes up like below:

Click YES and then this dialog confirms the action:

NOTE: This will take effect immediately, no need to restart Civil 3D.

Now, this same “delivery mechanism” could be used to resolve other issues.  So instead of creating a specific batch file to an issue, you have a master batch file that resolves all of these types of problems.  But if your trying to resolve AutoCAD specific issues, those are best left to a startup LISP as part of your default profile. That will be another post soon…

Advertisements

About Kevin
Hi… I am a husband, father, brother and neighbor. I am employed as a Civil Engineer and have enjoyed playing the drums for the last 30+ years.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: