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.

Ansys Learning Forum Forums Discuss Simulation Photonics Creating a polygon with tilted sidewalls via python API Reply To: Creating a polygon with tilted sidewalls via python API

Kirill
Forum Moderator

Hello Matthias,

It seems you are not able to complete the layer setting with

mode.set("geometry", {"1:0": vertices})


Try to use

mode.set("geometry", {"1:0": [vertices]})

instead and see if it helps.

Also, since you're calculating the vertices yourself, you can pass them directly to the LayerBuilder without the need to create an extruded polygon.

Best regards,
Kirill

[bingo_chatbox]