Guilin Sun
Ansys Employee

Please refer to this link

https://optics.ansys.com/hc/en-us/articles/360034410074-farfield2d-Script-command