Guilin Sun
Ansys Employee

Could you elaborate more? is this for near field, farfield, or general function integration?

If it is farfield, please refer this https://optics.ansys.com/hc/en-us/articles/360034410174-farfield3dintegrate-Script-command