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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Add Parameter to Parameter

wfalco
15-Moonstone

Add Parameter to Parameter

All,

 

I feel I have done this before.

 

How do I add parameters to a parameter?

 

I have parameter "title_1". It is assigned the name "washer". I would like to add ID OD & THK parameters on end.

For example washer, .265 ID X .500 OD X .032 THK.

 

Maybe too early for me. Can this be done?

 

Wayne

Creo 4.0

1 ACCEPTED SOLUTION

Accepted Solutions
jbob
11-Garnet
(To:wfalco)

create a parameter called description, then write a relation something like this

 

description = ID + "ID" + "X" + OD + "OD" + "X" + THK + "THK"

 

this may seem a bit confusing because you will have parameters called ID, OD, & THK and you want to add

text after the parameters.

View solution in original post

4 REPLIES 4
jbob
11-Garnet
(To:wfalco)

create a parameter called description, then write a relation something like this

 

description = ID + "ID" + "X" + OD + "OD" + "X" + THK + "THK"

 

this may seem a bit confusing because you will have parameters called ID, OD, & THK and you want to add

text after the parameters.

wfalco
15-Moonstone
(To:jbob)

DOH..a relation. Yeah - it's early. Thanks jBob!

Wayne

BenLoosli
23-Emerald II
(To:jbob)

Simplified version, after you convert your real variables ID, OD and THK to strings.

 

description = title_1 +", " + ID + " ID X" + OD + " OD X" + THK + " THK"

 

KenFarley
21-Topaz I
(To:wfalco)

Hey Wayne,

Here's an old discussion of this kind of stuff...

Parameters to Text Discussion

Lots of detail, but should get the job done for you.

Top Tags