defineFunctionStart("SET_CFAttribute") characteristicName = getFunctionObjectName() // Current Characteristic Name CF_Attribute = "IN" // Pass // below could be doing double the work, uncomment below if your solution isn't working //setCFAttribute("u_{2403}","IN") // Check if single characteristic if characteristicName.size == 0 // Check if in tolerance, if not: set attribute "OUT" if getActual(characteristicName).inTolerance == false // Fail CF_Attribute = "OUT" // below could be doing double the work, uncomment below if your solution isn't working //setCFAttribute("u_{2403}","OUT") endif endif // Check if multiple characteristics, i.e. bore pattern if characteristicName.size <> 0 // Iterate through all in array for i = 1 to characteristicName.size // Check if in tolerance, if not: "OUT" if getParameterNamed(getActual(characteristicName), i).inTolerance == false // Fail CF_Attribute = "OUT" // below could be doing double the work, uncomment below if your solution isn't working //setCFAttribute("u_{2403}","OUT") endif next i endif defineFunctionEnd("CF_Attribute") // Runs the "SET_CFAttribute" function on every characteristic in the program // sets the return value in defineFunctionEnd to the user defined "u_2403" field generateTableColumn("u_2403","SET_CFAttribute")