Lito Yap
Ansys Employee

@Zhaoyu Zhang,

That was to test if our API is working.

Based on your screenshot your are not running from the CAD > Script file editor window. Try running your ‘lumapi script’ from the CAD as you did with our sample script and see this works.  And vice-versa, run our sample lumapi script on the third party application (shown on your screenshot), to verify if it works outside the CAD. 

This should verify if the issue is with the API or Lumerical CAD or something else on your settings for the other application or system settings.  

Looking forward to your feedback. Thank you.