Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Photonics

Photonics

Topics related to Lumerical and more.

Syntax error

    • alisa
      Subscriber

      Hi,

       

      I wrote the code in a structure group to draw my simulation by embedding the script file here, however when I tested, it showed syntax error on line 140, which referred to just the -copy;- command. 

      I also embeded the other script file, which the language is almost the same (a very small different in a detail of waveguide structure), but showed no error at all.

      And what is Line 0: syntax error?

      Thank you!

       

       

    • Amrita Pati
      Ansys Employee

      Hi Alisa,

      Are you selecting any object(s) before using the script command? The Line 0 syntax error usually occurs when there is an issue with the overall organization/structure of the script. For example, a missing opening or closing bracket '{','}'. I will suggest you to check each bracket and make sure it has a closing bracket. Please let me know if the error is still not fixed. 

      Regards,
      Amrita

    • alisa
      Subscriber

      Hi Amrita,

      Thank you so much.

      I have actually checked everything and also tried copying the script from the other file that worked, but still, the syntax error remained. 

       

      However, when I tried copying this script into a new file and saved, it worked just fine.

       

       

      Best regards,

      Alisa 

    • Amrita Pati
      Ansys Employee

      Hi Alisa,

      That is a bit strange. But I am glad it worked. Let me know if you have any other questions. Thank you!

      Regards,
      Amrita

Viewing 3 reply threads
  • The topic ‘Syntax error’ is closed to new replies.
[bingo_chatbox]