"Last Saved By"
"Last Saved By"
(OP)
I want to change the "Last Saved By" name that is used by SolidWorks. I believe that this was registered in SolidWorks as the name of the logged in user during installation. Does anybody know where this is saved so that I may change it? I guess the registry; but I couldn't find it. Any ideas?
Thanks,
Brian
Thanks,
Brian






RE: "Last Saved By"
In my years of probing the depths of SW's API, I have not found a way to access this. It is a file parameter that is hidden from public write access.
From what I can tell, this property is automatically written into the file when it is saved. The Windows user name of the active account is written to the file, with no options to adjust this behavior.
Even if you manage to change the "Last saved by", each feature also records the user name of its creator and last modifier.
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: "Last Saved By"
What is your goal? Do you want to change how SW reports the "last saved by" for existing files, or do you want to change the "installed user" or whatever so that future files get stamped with the right name?
RE: "Last Saved By"
swModel.SummaryInfo(swSumInfoSavedBy)
In order for it to work the way I want, my user name must be in the format "BMears" (for Brian Mears). I pull the name from the summary info and truncate all but the first two characters (leaves "BM").
I started a new job and they set my user name as "Brian M", so my initials show as "Br".
I have a hunch that SolidWorks writes the active Windows user name somewhere in the registry during installation. I found (and changed) the user name in Windows, but it did not affect SolidWorks.
Blah blah blah. After all that, any ideas? Thanks,
Brian
RE: "Last Saved By"
RE: "Last Saved By"
Ken
RE: "Last Saved By"
Eric