If Exist function to control restricted values for material and finishes
Creo 10
I have been tasked with providing restricted values for parameters based on my material selection.
Example, if I select 1018 CRS, I only want my "finish" parameter restricted values to be powdercoat / black oxide
If I select 6061 aluminum, I want my "finish" parameter restricted to clear anodize / black anodize.
My 1st attempt, your able to create material parameters for individual materials. However, if you create restricted values for material parameters, the restricted values do not save with the material file. If this worked each material would be able to have its very own set of "Finish" parameter values and this is all I'm after.
My 2nd attempt, was to have each material having its own special parameter. EX.... 1018_Finish, 6061_Finish. Then have a restricted variable file grab the appropriate information.
This worked, however I need my drawings to be populated with a &Finish. I thought adding a IF exist function in my relations would cover this (see example below). However, I'm unsure how to add layers to this because as of right now if "finish_1018" doesn't exits, then finish equals x and it doesn't continue to look for Finish_6061.
If there's a better method to achive this please share. Thank you!
IF exists ("FINISH_1018:MTRL")
FINISH=FINISH_1018:MTRL
ELSE
FINISH="X"
ENDIF
IF exists ("FINISH_6061:MTRL")
FINISH=FINISH_8620:MTRL
ELSE
FINISH="X"
ENDIF

