Best way to add a relation to a part
As part of our migration to Creo 8 / Windchill 12, we came up w/ smart formats fed by parameters in our new start parts. When we have a new part on a new format life is ezpz.
However, if we have an existing part w/o the required parameters things get complicated. I came up w/ a mapkey to add the needed parameters to the existing part that works well when we want to put this part on a new format.
Problem lies in a relation we have in our new start parts. It's the one below that sets the value of the MATERIAL parameter equal to the value of PTC_MATERIAL_DESCRIPTION. Each material has a defined description in it.
/*This relation sets the material parameter equal to the material description thru a yes/no parameter
IF (USE_MATL_DEF_DESC)==YES
MATERIAL=material_param("PTC_MATERIAL_DESCRIPTION")
ENDIF
/*
This information needs to be pasted into the existing relations for the part. The easiest place to paste it is at the bottom of the other relations in the dialog. I created a mapkey to do it but it involves a pause in the mapkey telling the user to scroll to the bottom of the dialog, locate the cursor at the end of the last line and then put in a carriage return. From there, they hit resume on the mapkey and the info will get pasted in.
I'd like a better way to do this that doesn't involve so much user interaction if possible. Relations in the parts are not always the same so I can't just paste an entire new set of relations in.
Thanks.



