Is there a way to start the SolidWorks Explorer commands with DOS or maybe a script? I know this seems odd, but was wondering if anyone new how to accomplish this.
I do not think there is a way to do it from DOS prompt. You could use the SolidWorks Document Manager API to create a exe.
Not sure if you are aware, but it is in Windows Explorer. Right mouse on SolidWorks file, SolidWorks -> Rename.
Thanks for the reply. I knew it was in Explorer, which is why I assumed it could be done with dos. I don't know if there's a way to edit what is in the RMB in explorer? Someone might know?...
Sure but probably not for the faint of heart.
In your registry it'd be under: HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers
Sounds good. I wasn't able to make sense of what was in the registry...Anyone have more specifics?
I would second Wayne's comments about the API. I think you could even do it with VBScript. Can you describe further exactly what you want to do?
I would like the to run the SolidWorks Explorer Rename command using Run or the Dos CMD window.
It sounds like what you are trying to do is what I used to do eons ago
when I created batch files. Used to use them to launch me ACAD program
back in the day. This might be something worth looking into.
I think the problem with that is that the rename command is a dll inside the SolidWorksexplorer.exe program file and you cannot access it as a parameter to dos command line.
This will work:
"Directory\SolidWorksExplorer.exe" rename "SolidWorksFile.sldprt"
It starts the "Rename" dialog.
I will be writing a command line tool to replace documents right from the command line soon. Do you want me to alert you when I am done?
I just wrote one to Get the References here:
I have a working program for Replacing References. It is called ReplaceReferences.exe. You can find it here:
I used it earlier today to replace ~1500 references. It works well. I used my other program called GetReferences to check my work and everything was fine. If you find problems, please send me what typed and if the newChild actually exists (required).
Retrieving data ...