Hi,
The parameter "CFCPREEVENTTYPE" is an enumeration variable with the selection "EndPoints" or "ZeroMagnitude" and not is optional.
Every mathematical function in DIAdem represents their parameters in global variables - eg. "CFCPREEVENTTYPE" as one parameter of the function "ChnCFCFiltCalc".
If you now call a function in a VBScript you have two possibilities
a) call the function with parameters like ChnCFCFiltCalc(X, Y, E, CFCFiltType, 0,"EndPoints")
b) call the function without parameters like ChnCFCFiltCalc
In case b) DIAdem will use the current content of the global parameter variable.
Maybe that this is you problem.
Kind regards
Walter