Thursday, March 22, 2007

Preview AutoCAD text files in Outlook 2007 and Vista

I mentioned about PDF preview handlers in a previous post.

Here is a picture showing how an AutoLISP file with the LSP file extension is previewed in Outlok 2007.

Here is a preview in Vista Explorer.

The above was achieved without any extra coding. A simple registry hack made lsp files and other files to be handled just like plain txt files.

Here is a sample reg file including some txt format files that are used by AutoCAD. CUS, DCL, LIN, LSP, MNL, MNS, MNU, PAT, PGP, SCR and SHP. This works for Windows Vista and Microsoft Outlook 2007. If you want other files to be handled like TXT files it is simple to edit the reg file and add or remove these. For example you might want to add CMD, BAT, VBS.

http://www.jtbworld.com/download/AutoCAD%20Preview%20Handlers.reg

Here is a snippet from the file.

[HKEY_CLASSES_ROOT\.lsp\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{1531d583-8375-4d3f-b5fb-d23bbd169f22}"

To remove it you can create a REG file with lines like this.

[-HKEY_CLASSES_ROOT\.lsp\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}]

No comments:

Post a Comment