cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Change the "_" underline into "." a point

SOLVED
Level 7

Change the "_" underline into "." a point

Hello to all Creo User,

Hello Tom Uminn‌, Martin Hanak

could anybody tell me how i can change the "_" underline into "." a point?

My Problem is, i want to show the "PTC_MATERIAL NAME" in a notification, but this parameter accepted only "_" underline in the label / Name.

The real materialnumber is: 1.0037

The label from the PTC_MATERIAL_NAME is: 1_0037

How can i extract this either in a new custom parameter or directly into a notification?

Thanks in advance

Heiko

1 ACCEPTED SOLUTION

Accepted Solutions
Level 17

Re: Change the "_" underline into "." a point

Hi,

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

You can add 1.0037 string into material definition into description field or into user defined parameter. Then you have to define relation, for example:

!*** relations use active model material

!*** JMENO is user defined parameter

a=material_param("PTC_MATERIAL_DESCRIPTION")

b=material_param("JMENO")

!*** relations use model material named CU

!*** JMENO is user defined parameter

c=material_param("PTC_MATERIAL_DESCRIPTION","CU")

d=material_param("JMENO","CU")

In annotation you can call out parameters using &paramatername notation.

MH


Martin Hanák
3 REPLIES
Level 17

Re: Change the "_" underline into "." a point

Hi,

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

You can add 1.0037 string into material definition into description field or into user defined parameter. Then you have to define relation, for example:

!*** relations use active model material

!*** JMENO is user defined parameter

a=material_param("PTC_MATERIAL_DESCRIPTION")

b=material_param("JMENO")

!*** relations use model material named CU

!*** JMENO is user defined parameter

c=material_param("PTC_MATERIAL_DESCRIPTION","CU")

d=material_param("JMENO","CU")

In annotation you can call out parameters using &paramatername notation.

MH


Martin Hanák
Level 17

Re: Change the "_" underline into "." a point

If you must not modify material, then use string manipulation relation functions.

See http://support.ptc.com/help/creo/creo_pma/usascii/#page/fundamentals%2Ffundamentals%2Ffund_seven_sub... page

MH


Martin Hanák
Level 7

Re: Change the "_" underline into "." a point

Martin Hanak

Thanks!

Heiko