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

Parameter Relation to populate a single parameter with 2?

SOLVED
Highlighted
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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Parameter Relation to populate a single parameter with 2?

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

View solution in original post

7 REPLIES 7

Re: Parameter Relation to populate a single parameter with 2?

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


Steve Williams
Pro/E Version 15/16 (Circa 1995/1996)

Re: Parameter Relation to populate a single parameter with 2?

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

Re: Parameter Relation to populate a single parameter with 2?

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

Re: Parameter Relation to populate a single parameter with 2?

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.

Re: Parameter Relation to populate a single parameter with 2?

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

View solution in original post

Re: Parameter Relation to populate a single parameter with 2?

That worked! Thanks for all the help!

Re: Parameter Relation to populate a single parameter with 2?

Curry Cates

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

Thanks, Dale