I have set the ‘Scatter To Method’with the commond ‘...ScatterToData.ScatterToMethod = 1’, then I wanna set the Ray data as shown in Fig. 1, but I failed to call the function ‘SetRayData’.
According to the Ansys Developer Guideline as shown in Fig. 2/3, it doesnt give more details, I have tried to infer corresponding code but cant work.
![](https://uploads-us-west-2.insided.com/zemax-en/attachment/a8cfecfc-23e5-4d40-b1d6-2d0dcef4378a.png)
Fig. 1
![](https://uploads-us-west-2.insided.com/zemax-en/attachment/685d43a3-b637-4d5a-bdf6-b4fb0b89390b.png)
Fig. 2
![](https://uploads-us-west-2.insided.com/zemax-en/attachment/7a52fc07-23a1-4502-a90c-b24af6124749.png)
Fig. 3