-
-
May 20, 2022 at 3:27 pm
JuKa
SubscriberHello 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?
-
May 20, 2022 at 7:17 pm
Taylor Robertson
Ansys EmployeeHello 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
-
May 25, 2022 at 1:15 pm
JuKa
SubscriberThank you very much
I was finallay able to create my structure
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- “Import optical generation” or “delta generation rate”?
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- Error: addfdtd is not a valid function or a variable name
- Error on Lumerical device
- Using a license file on a new license server
- Ansys Insight: Diverging Simulations
- Ansys Insight: Transmission results greater than one
- Ansys Insight: About override mesh in FDTD: its use and settings
- Is there a Lumerical script command to output the Simulation and Memory requirements?
- Ansys Insight: Convergence issues in CHARGE
-
3656
-
2534
-
1745
-
1226
-
580
© 2023 Copyright ANSYS, Inc. All rights reserved.