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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Relations - Does the exists condition work for parameters existing in the material file?

BillRyan
15-Moonstone

Relations - Does the exists condition work for parameters existing in the material file?

I can't seem to get this condition to work.

 

IF EXISTS(material_param("MTL_MATERIAL_SPEC"))

MATERIAL_SPEC=material_param("MTL_MATERIAL_SPEC")

ENDIF

 

I'm starting to think the software is not capable of checking for existence of parameter in the mtl file.

If anybody has an alternate Condition / solution to make this work, let me know. 

 

2018-11-09 08_01_12-Relations.png

2 REPLIES 2

I think by parameters it means only such entities defined in a part or assembly. A material file is neither so this function is not valid for it.

BillRyan
15-Moonstone
(To:KenFarley)

Yeah, I think the only solution is to have some j-link app running in the background to populate the material file attribute when it is missing...

Top Tags