Try doing it this waynnNV_VS(ncap,= ,n,/ NV_MAG(n))nnThe rule that fluent use for this macro is ... V, stands for vector ... S, for scalar ... and D, for order .. try to arrange any operation using the three letters. The macros mentioned in the UDF manual are only examples. Some examples in many chapters used macros that were not mentioned.n