Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
On a default, out-of-the-box start part there is a field called "MODELED_BY" which is parameter-driven. If I wanted to auto-populate that field based on the user, how would i do that?
Do you use a PDM system, as the answer will change if you do or not.
No pdm
modeled_by = username
pdm
modeled_by = <pdm_username_variable>
In WIndchill it is ptc_wm_created_by
DO NOT USE ptc_wm_created_by. It is misleading and I just tested this again this morning.
This changes to the person that creates the next Revision.
We put ptc_wm_created_by and ptc_wm_created_on in our drawing title block and everytime a new revision was created the name and date would change in our title block. Definitely a violation and we had to remove it right away. This would work for the Revision History Block.
Unfortunately, we do not use Windchill or Intralink. The cost cannot be justified for a company that has 6-8 seats.
The non-PDM option that Ben suggested appears to be literal, so each user would have to manual input their name into the parameter for each part created. If it's not possible, that's fine. I am just trying to streamline our start part templates and other setup files.
Correct, the manual user input process is the only way you can accomplish this without Windchill.
You can 'speed' up the process so the users do not have to type their name, just select it from a drop down list by using a restricted_param.txt file and setting this line in config.rpo.
restricted_val_definition <network_shared _folder>\restricted_param.txt
Sample file is below, cut and paste into an empty file name restricted_param.txt
ND_ParamDefArr_K01 = {
{Name=modeled_by
Type=string
Default=' '
Enum={'user_1','user_2','user_2'}
}
}