Reset AutoCAD in a Windows profile to default

Occasionally I’ll come across an obscure AutoCAD problem that is only occurring for one particular user. I would have narrowed down the issue to conclude:

  • It doesn’t occur on a different computer with the same drawing
  • It doesn’t occur on the same computer with a different user and the same drawing
  • It does occur with the same user and a different drawing
  • It also continues to occur after changing profiles within AutoCAD

First some definitions just for clarification (perhaps there is better terminology out there, but I can’t think of it):

AutoCAD Profile: Profiles within AutoCAD that are accessible through the OPTIONS command

AutoCAD Windows Profile: Set of files, folders and registry entries for a single Windows user that contain all AutoCAD settings for that particular user


Based on the conclusions and definitions above, it is much easier to reset the AutoCAD Windows Profile back to defaults rather than try to find a solution, unless you know the command/variable that is causing your problem.

It should go without saying, this will remove any customizations you have made, including additional CUI files, PC3 files and tool palettes.
To do so:

  1. Navigate to: “%appdata%\Autodesk”
  2. For the Autodesk product with which you are having a problem, append the word “OLD” to that folder
  3. Navigate to “%localappdata%\Autodesk”
  4. For the Autodesk product with which you are having a problem, append the word “OLD” to that folder
  5. Open Regedit
  6. Navigate to HKCU\Software\Autodesk\AutoCAD\
  7. If you have more than one AutoCAD product, you’ll see a variety of R1x.x numbers. These correspond to different AutoCAD releases, with the major number incrementing when a new DWG format is released. For a specific list, see here:
  8. Expand the version you’re concerned with, and you will see a key for each product within that release. For example:
  9. Right click on that key, and choose Export. Save this as a backup in case something goes wrong.
  10. Now delete that key that you just exported.


Now when you start AutoCAD as that user, it will rebuild the AutoCAD Windows Profile from default.


SSRS – Multi Value parameter in Linked Report

I had been trying to get a multi valued parameter into a linked report for the longest time, and when running the report all I would get was an error, “The %variable% is missing a value”.

I just couldn’t figure it out, but it was just me being dumb. The answer is really quite simple:


I was trying to enter my values like this:

value1, value2, value 3


But what you need to do is enter them separately on a different line:


Then SSRS will make a comma delimited list of them for you.

PDF Link creates new IE window that disappears

I’ve got a few users using separate sites that are showing the same problem with PDF links. Upon clicking the link, a new IE window opens and then immediately disappears.

So far this only seems to affect IE7 and IE8.

One workaround we’ve found is to hold CTRL while clicking the link, but this isn’t ideal.

I stumbled upon the solution to this issue today though. Try this:


Open Internet Explorer, and go to Tools > Internet Options > Security > Custom Level



Scroll down until you find the Downloads section, and change “Automatically prompt for file downloads” to enable:


Now your link should prompt you to save the file.


Mindtouch Core – Wiki & Intranet

At my company I’ve been using Mindtouch since it was called Dekiwiki. Its use is primarily as a company intranet, with resources, documentation and a gathering place for certain tools.mindtouchlogo

This post is the first about our implementation, and my intention is to demonstrate what is capable with Mindtouch Core in a practical manner. This type of information is notoriously hard to find from Mindtouch, as they are a company very much set on buzzwords and corporate speak.


As a wiki, intranet or document port, I really do recommend Mindtouch. It is incredibly easy to set up, very easy and friendly to use, and has vast potential for customization.

If you want to get started, I’d recommend you download the VMware image from here:

I believe you will need to register for a license of Core, which is free.


So diving in, here is the front page of our wiki (excluding some identifiable information):

Click for full size

This is using a customized version of the Beechbeta skin, with modifications such as:

  • Changed to a dynamic width skin instead of fixed
  • background tiling to match corporate colours
  • Additional links underneath the logo placement (logo hidden in this image, its top left usually)
  • Certain CSS sizing of elements.

We have enabled single sign on, so as long as the user is authenticated with Active Directory, the wiki will use those credentials to sign in.

On our front page, I am using a template to display weather for our regional offices, with a simple table beside that for current news which is updated manually.

The success board is an iframe, which displays a custom gridview from a minor database.

On the left you can see a suggestion box, which is an html form that is linked to php code that automates email submission.


Our page structure is shown on the left, where most of the content is specific to a Department, an Office (geographical) or company wide (Resources).

Here are some of the practical uses we’re using Mindtouch Core for:

  • Community forum/discussion area
    Click for full size


  • Embedded media
  • Documentation reference
  • FAQ pages and instructions
  • Links page (many staff bookmark this page)
  • Accessibility to various internal tools and sites, such as Vacation Planner, Suggestion Box, etc.
  • Program distribution through files page


We are also trying to promote the personalize page feature of Mindtouch. Every user has their own personal page, which can be made into a biography, notes, or photo dump.

Recently Mindtouch has added an “Activity Dashboard” which is useful. I’ve added a slideshow of any photos added to a user’s personal page onto this Dashboard:

As well, we’ve added a tab with Info about the user, pulled from our Active Directory. I would have really liked to get this on the Activity Dashboard tab, but that is beyond my coding skills.


So that in a nutshell is how we’re using Mindtouch. In the future I’ll post more on the specific tools we’re using and how they’re created.

If you’d like information on how any of these features or customizations are done, leave me a comment!



Automated DFSR Backlog email

If you’re using DFSR for branch office replication, chances are you’re concerned about the number of files in the backlog queue. This page details a script I’ve been using to automate sending of emails, using a combination of blat and dfsrdiag.

To begin you’ll need to download Blat.

I suggest placing the Blat files within C:\Windows so that it’s automatically added to the system path; you could just use the full folder path when calling it though.

Here’s an example batch script I’m using for one replication group:

dfsrdiag Backlog /receivingmember:hub-server /sendingmember:branch-server /\files\departments /rfname:Departments >C:\users\administrator\documents\backdept-from-branch-server.txt
FOR /R "C:\users\administrator\documents\" %%F IN (backdept-from-branch-server.txt) DO (
       IF %%~zF GTR 3000 (blat C:\users\administrator\documents\backdept-from-branch-server.txt -to  -server -f -subject "Backlog exists: Departments incoming from Branch-Server"))


Here’s a quick rundown on what this is doing:

dfsrdiag Backlog: this command generates a backlog report for the specified sending and receiving server, for the specified replication group, and outputs it to a text file.

This report looks like this:

Member  Backlog File Count: 1367
Backlog File Names (first 100 files)
     1. File name: DSC03752.JPG
     2. File name: DSC03786.JPG
     3. File name: DSC03794.JPG
     4. File name: DSC03796.JPG
     5. File name: DSC03809.JPG
     6. File name: DSC03810.JPG


The next line in the script beginning with “FOR /R”, looks for the text file just generated, and runs logic on it.

IF %%~zF GTR 3000: If the size of the backlog report text file is greater than 3KB, then generate an email to the specified people, with the text file as the message body.

Scheduling the commands

So I’ve got 16 batch files that generate reports; 2 replications groups in two transfer directions to 4 separate locations. To reduce the number of scheduled tasks, and ensure that all 16 backlog reports aren’t run at the same time, I’ve got separate batch files that call 4 at a time, and are scheduled 5 minutes apart.