Make variable revert to default value when file is checked out.

I am fairly new to PDM admin work, and this one is stumping me. Is it possible to have a Variable revert to the Default Value everytime the file is checked out?

I want to grab the current users initials to add to the revision block. I have added a read-only edit-box to my data card that is pulling the special value User-Initials as the default value. It works great when the file is created, but it does not change to the current user when you check out the file to work on it. Is there any way to force a variable to revert to the default value always even if it changes based on who has the file checked out. The variable is creating a custom property that we will use in the revision block to update who is doing the revisions.

Hit me with workarounds, better options, something to make this process automated.

SolidworksAdministration
Answers 1
PW
PW 2018-01-18 Best Answer

The issue you are going to run into is that the checkout process does not write to variables or data card fields. I would suggest creating a dispatch that runs on checkout, but it has the function to get the current users full name and not just their initials. You could have a sequence of functions in the dispatch to crop the initials out of the name, but all the users full names would have to be formatted the same.

Or maybe you could have their initials at the end of their name and they you could have the dispatch cut off everything except the last 2 or 3 characters.

The during check out option can set the variable before the checkout, but then it would have to be a version free variable. It would be best to have it run the dispatch after checkout completes. If you provide an example of what a full name looks like I could attempt to create a dispatch for you.