Access username (like PTC_WM_CREATED_BY or other) from part .prt BEFORE saving into Windchill
I am using Creo Parametric 7.0 7.0.4.0
When creating a new part (.prt) with Creo parametric, I would like to assign a parameter named "CREATED_BY" with the current user logged into Windchill (peaple log into Windchill when launching Creo Parametric).
I know the PTC_WM_CREATED_BY (and PTC_WM_MODIFIED_BY, etc.) are recorded into the .prt when pushed into Windchill.
I would like to access the value stored into PTC_WM_CREATED_BY immediatly when a new part (.prt) is created.
Like this I can search into it and fetch first letters of name and surname from the email like : john.do@organization.com becomes --> jdo
Currently, our default .prt template has this relations :
CREATED_BY=EXTRACT(PTC_WM_CREATED_BY,SEARCH(PTC_WM_CREATED_BY,"(")+1,1)+EXTRACT(PTC_WM_CREATED_BY,SEARCH(PTC_WM_CREATED_BY,".")+1,2)
It work but only after saving AND pushing into Windchill, refreshing and save it again into Windchill (which is not very convignient).
Overall, I want a way to access the username when user has logged into Windchill trough PTC Creo Parametric.
Could you please help ?

