Skip to main content
1-Visitor
July 24, 2015
Solved

Parameter Relation to populate a single parameter with 2?

  • July 24, 2015
  • 1 reply
  • 2820 views

Hello all,

Is there a way to write a relation to where a single parameter can be populated by 2 other parameters? Example:

DESCRIPTION= ************

PTC_MATERIAL_DESC= HR STEEL

GAUGE= 10

MAT_TYPE= GAUGE

DESCRIPTION=="PTC_MATERIAL_DESC""GAUGE""MAT_TYPE"

DESCRIPTION= HR STEEL 10 GAGUE

Thank you for the help!

C


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by BenLoosli

Try this: Material_desc=PTC_Material_name+" "+itos(Gauge)+" "+Mat_type

1 reply

StephenW
23-Emerald III
July 24, 2015

DESCRIPTION = PTC_MATERIAL_DESC + " " + GAUGE + " " +MAT_TYPE

ccates1-VisitorAuthor
1-Visitor
July 24, 2015

Unfortunately that did not work. I tried it 3 different ways.001.PNG003.PNG002.PNG

23-Emerald III
July 24, 2015

How are the parameters defined? What type are they?

I think GAUGE may be defined as numeric and you cannot mix string and numeric values into a string parameter.

Define GAUGE as a string value, then concatenate them again.

Material_desc=PTC_Material_name+" "+Gauge+" "+Mat_type