×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

"Last Saved By"

"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

RE: "Last Saved By"

Sounds like someone needs to cover his tracks!  What manner of misdeed are you trying to hide?censored

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.

I could be the world's greatest underachiever, if I could just learn to apply myself.
http://www.EsoxRepublic.com-SolidWorks API VB programming help

RE: "Last Saved By"

Brian,
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"

(OP)
I wrote a macro to add revisions.  Each revision line gets the initials of the person who made the revision.  Those initials are pulled (in VBA) from the file summary info "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"

Why not just truncate the middle characters now that you've started a new job?

RE: "Last Saved By"

The real fix is to establish a standard user name, that is the root cause of your problem. If that isn't possible then how about pulling the name from somewhere else (not as subjective)...like environ ("USERID")?

Ken

RE: "Last Saved By"

Another option might be to create a look up table for your program that has user name - initials pairs.  You can create a pair for each operator.  That way your code will not rely on having user names in a specific format.  However, you will need to modify the table when you get new users.  This might be easier if the table was in an external file.

Eric

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources