Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows right-click context menu customization

Status
Not open for further replies.

gdahll

Industrial
Oct 24, 2003
18
Is anyone up on customizing the right-click context menu in windows explorer? I realize this is more of a windows question than anything else, but what I'm looking for is:

Right-click (in a folder) > new > SolidWorks part document.

Below is what I've done so far, and it will produce an unusable 0KB SLDPRT file in a folder but not a copy of my favorite "g2.SLDPRT" template. ("PRTDOT" is a template within SW, I know.)

[HKEY_CLASSES_ROOT\.sldprt\ShellNew]
"FileName"="C:\\WINDOWS\\SHELLNEW\\g2.SLDPRT"

These tricks work with MS office docs and others, you get a real file that is usable, is this even possible w/ SW files?


Thanks,

gdahll
SW 2007 SP3
ACAD 2002
 
Replies continue below

Recommended for you

Try selecting the file holding the Ctrl button and drag. It will make a copy of your "g2.SLDPRT template".

Simply creating a file and making it a SolidWorks file.
I think it is just as easy to open the file and do a save as.

Chris
SolidWorks/PDMWorks 08 3.1
AutoCAD 08
ctopher's home (updated Aug 5, 2008)
ctopher's blog
SolidWorks Legion
 
Whats with the double \ in your path? Maybe that is your problem?

 
This will not be possible without a dll. This is because SolidWorks has to have a template to start out a file. If you hide all your templates, SW will create new ones for you. These are not blank files. If this is really that important to you, you will have to find someone to write you a Windows Explorer shell extension (I think that's the right term) to do it.

-handleman, CSWP (The new, easy test)
 
Did you actually create a C:\WINDOWS\SHELLNEW\g2.SLDPRT?

The easiest way to do that would be to open SolidWorks and create a new part file from your g2.prtdot template, and then save it to the C:\WINDOWS\SHELLNEW folder.

I think all that registry key does is tell Windows what file to copy to the current folder and call "New Whatever".

Eric
 
The double slashes are due to right clicking "edit" on an exported reg string, I thought that was strange too. It is not that way in the actual string using regedit.

Trying with a "PRTDOT" did not work either; handleman must be correct in that this trick needs a custom dll to work. I will investigate this, I'd really like this function if it can be done.


gdahll
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor