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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

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

hhagedorn
10-Marble

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

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3

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

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%2FOperators_and_Functions_for_Strings.html%23 page

MH


Martin Hanák

Martin Hanak

Thanks!

Heiko

Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags