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

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

  • April 21, 2017
  • 1 reply
  • 2204 views

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

    Best answer by MartinHanak

    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

    1 reply

    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

    24-Ruby III
    April 21, 2017
    hhagedorn10-MarbleAuthor
    10-Marble
    April 25, 2017

    Martin Hanak

    Thanks!

    Heiko