Parameter Relation to populate a single parameter with 2?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
Solved! Go to Solution.
- Labels:
-
General
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try this: Material_desc=PTC_Material_name+" "+itos(Gauge)+" "+Mat_type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
DESCRIPTION = PTC_MATERIAL_DESC + " " + GAUGE + " " +MAT_TYPE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Unfortunately that did not work. I tried it 3 different ways.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try this: Material_desc=PTC_Material_name+" "+itos(Gauge)+" "+Mat_type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
That worked! Thanks for all the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
