Skip to main content
10-Marble
April 21, 2017
Solved

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

    24-Ruby III
    April 21, 2017

    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

    3 replies

    24-Ruby III
    April 21, 2017

    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

    Translate
    24-Ruby III
    April 21, 2017

    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

    Translate
    hhagedorn10-MarbleAuthor
    10-Marble
    April 25, 2017

    Martin Hanak‌

    Thanks!

    Heiko

    Translate