Can I use material_param("custom") function when the "custom" material attribute may not exist?
Creo 10.0.8.0
In our material library I want to be able to add the common material designations as custom attributes in the material file. THEN, I want to use a relation to automatically populate the material attribute MATL_SPEC with the material attribute when it exists.
But I have found then when the "custom" material property doesn't exist the relations fail. I tried using the "exists()" function to check, but the equation fails before getting to the "exists()" function.
This is the equation I was trying to use. When "custom" exists, it works, but if "custom" doesn't exist it fails.
if exists(material_param("custom"))
test=material_param("custom")
endif

Also, I've found then when "custom" does exist, I don't actually enter into the "do" part of the IF statement.
Is there another recommended work-around or relation function structure I can try?


