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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Parameter Relation to populate a single parameter with 2?

ccates
1-Newbie

Parameter Relation to populate a single parameter with 2?

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.
ACCEPTED SOLUTION

Accepted Solutions
BenLoosli
23-Emerald II
(To:ccates)

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

View solution in original post

7 REPLIES 7
StephenW
23-Emerald II
(To:ccates)

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

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

BenLoosli
23-Emerald II
(To:ccates)

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

All of the parameters are set to string initially. However, when I build relations into the parameters, such as GAUGE, when it is populated it switches to an integer per the relation push.

BenLoosli
23-Emerald II
(To:ccates)

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

That worked! Thanks for all the help!

Dale_Rosema
23-Emerald III
(To:ccates)

Curry Cates

Don't forget to mark Ben's answer as correct for those that come behind.

Thanks, Dale

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags