Photonics

Photonics

“setlayer” command does not work when scripting with python?

    • JuKa
      Subscriber
      Hello everyone I am new to the forum, but I could not find the answer in previous posts or questions. So here we go:
      I want to use python to create a model, that I then use for some simulations.
      Following this guide https://support.lumerical.com/hc/en-us/articles/360034929453-setlayer-Script-command
      I want to set the properties for a created layer using the "setlayer" command
      So I created a layer using "addlayerbuilder" and then "addlayer".
      I can give my created layer certain properties such as "thickness" and even "pattern material", but when I want to introduce a "material" I get the error mesage:
      lumapi.LumApiError: 'the requested property was not found'
      This does not depend on the material chosen, since "pattern material" works perfectly fine.
      It seems to me that the keyword "material" does not work as intended. Is there a way to fix this by myself?
    • Taylor Robertson
      Ansys Employee
      Hello Juka I would use the script editor to help debug this script then adapt it to python. This has the benefit of being able to query objects. As you can see the setlayer command doesn't have "material" property. I think this was deprecated to allow for the more precise properties of pattern and background material.
      ?setlayer("layer_1");
      enabled
      name
      layer number
      start position
      thickness
      pattern material
      background material
      process
      sidewall angle
      pattern growth delta
      pattern alpha
      background alpha
      For more information on the layer builder usage, I would refer to this article.
      https://support.lumerical.com/hc/en-us/articles/360034382394-Layer-builder
    • JuKa
      Subscriber
      Thank you very much
      I was finallay able to create my structure
Viewing 2 reply threads
  • You must be logged in to reply to this topic.