Skip to main content
2-Explorer
Jan 15, 2015 9:54 AM UTC
Question

Data Format!

Hallo!

WindChill create in Creo part parameter named PTC_WM_MODIFIED_ON. It show date of the last modification.

Default format is: %dd-%Mmm-%yy [expl. 15-Jan-15].

How can I change format to: %mm/%dd/%yy [expl. 15/01/15]

Please Help!

4 replies

TomU
23-Emerald IV
Jan 15, 2015 1:04 PM UTC

Use the hidden config.pro option "date_type_parameter_format" in Creo.

See https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS49539 for more information.

14.PNG

Translate
2-Explorer
Jan 16, 2015 5:26 AM UTC

Thanks a lot!

Can I do this the same with PTC_WM_CREATED_BY and PTC_WM_MODIFIED_BY.

I want on my drawings only initials of person.

Translate
TomU
23-Emerald IV
Jan 16, 2015 1:44 PM UTC

No, not really.  You can configure these two values to either display the email address or the username.  To extract just the initials, you would need to manually parse the text string and then assign the value to a new parameter in Creo.  Something like this (all on one line):

INITIALS = EXTRACT(PTC_WM_MODIFIED_BY,1,1)+EXTRACT(PTC_WM_MODIFIED_BY,(SEARCH(PTC_WM_MODIFIED_BY," ")+1),1)

Take a look at these pages for more info:

http://communities.ptc.com/thread/51654

http://communities.ptc.com/ideas/3857

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS176501

Translate
2-Explorer
Jan 19, 2015 10:37 AM UTC

Thanks, I have setted relations as I wanted to.

But is the way to add all new relations to old parts and assemblies I have in WindChill?

Translate