


{"id":391356,"date":"2024-10-25T09:35:11","date_gmt":"2024-10-25T09:35:11","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/"},"modified":"2024-10-25T09:35:11","modified_gmt":"2024-10-25T09:35:11","slug":"creating-a-polygon-with-tilted-sidewalls-via-python-api","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/","title":{"rendered":"Creating a polygon with tilted sidewalls via python API"},"content":{"rendered":"<p>&lt;p&gt;Hello,&lt;\/p&gt;&lt;p&gt;I am trying to create a polygon with tilted sidewalls in python. I have adapted the script that is given as an example in the artical: <a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360034382334-Tips-for-adding-sidewall-angles-to-simulation-objects\">Tips for adding sidewall angles to simulation objects &ndash; Ansys Optics<\/a>&lt;\/p&gt;&lt;p&gt;My python code does look like this:&lt;\/p&gt;&lt;div&gt;&lt;div&gt;&nbsp; &nbsp; &lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;name = &#8220;Angled WG&#8221;&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; vertices_1 = np.array([[Epi[&#8220;Total t&#8221;], -Data[&#8220;Angled WG&#8221;][&#8220;w&#8221;]\/2], &nbsp;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[Epi[&#8220;Total t&#8221;] + Data[&#8220;Angled WG&#8221;][&#8220;t&#8221;], -Data[&#8220;Angled WG&#8221;][&#8220;w&#8221;]\/2],&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[Epi[&#8220;Total t&#8221;] + Data[&#8220;Angled WG&#8221;][&#8220;t&#8221;], Data[&#8220;Angled WG&#8221;][&#8220;w&#8221;]\/2],&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[Epi[&#8220;Total t&#8221;], Data[&#8220;Angled WG&#8221;][&#8220;w&#8221;]\/2]&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;])&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp;&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.addpoly()&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.set(&#8220;vertices&#8221;, vertices_1)&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; vertices = mode.get(&#8220;vertices&#8221;)&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; # print(vertices)&lt;\/span&gt;&lt;\/div&gt;&lt;br&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.addlayerbuilder()&lt;\/span&gt;&lt;\/div&gt;&lt;br&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.set(&#8220;name&#8221;, &#8220;WG&#8221;)&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.set(&#8220;geometry&#8221;, {&#8220;1:0&#8243;: vertices})&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.set(&#8220;gds sidewall angle position reference&#8221;, &#8220;Bottom&#8221;)&lt;\/span&gt;&lt;\/div&gt;&lt;br&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; n_GaN = [n_e_GaN, n_o_GaN, n_o_GaN]&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; material = name&lt;\/span&gt;&lt;\/div&gt;&lt;br&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; if mode.getmaterial(name) == str(&#8220;The material, &#8221; + name + &#8220;, is not available.&#8221;):&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; mode.setmaterial(mode.addmaterial(&#8220;(n,k) Material&#8221;), &#8220;name&#8221;, material)&lt;\/span&gt;&lt;\/div&gt;&lt;br&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; mode.setmaterial(material, &#8220;Anisotropy&#8221;, 1) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Diagonal Anisotropy&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; mode.setmaterial(&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; material, {&#8220;Refractive Index&#8221;: np.array(n_GaN), &#8220;Imaginary Refractive Index&#8221;: 0}&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; &nbsp; &nbsp; ) &nbsp; &nbsp; &nbsp; &nbsp;&lt;\/span&gt;&lt;\/div&gt;&lt;br&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.addlayer(&#8220;WG Layer&#8221;)&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.setlayer(&#8220;WG Layer&#8221;, &#8220;layer number&#8221;, &#8220;1:0&#8243;)&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.setlayer(&#8220;WG Layer&#8221;, &#8220;thickness&#8221;, Data[&#8220;Angled WG&#8221;][&#8220;t&#8221;])&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.setlayer(&#8220;WG Layer&#8221;, &#8220;pattern material&#8221;, material)&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;&lt;span style=&#8221;color: rgb(35, 111, 161);&#8221;&gt;&nbsp; &nbsp; mode.setlayer(&#8220;WG Layer&#8221;, &#8220;sidewall angle&#8221;, Data[&#8220;Angled WG&#8221;][&#8220;angle&#8221;])&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;p&gt;The code runs, however, the polygon with the sidewalls is not created via the layer builder&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/25-10-2024-1729848723-mceclip1.png\" \/>&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;Could you help me with fixing this issue?&lt;\/p&gt;&lt;p&gt;Kind regards,&lt;\/p&gt;&lt;p&gt;Matthias Hoormann&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-391356","topic","type-topic","status-publish","hentry","topic-tag-polygon-objects","topic-tag-python-scripting"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hello,I am trying to create a polygon with tilted sidewalls in python. I have adapted the script that is given as an example in the artical: Tips for adding sidewall angles to simulation objects \u2013 Ansys OpticsMy python code does look like this: name = &quot;Angled WG&quot;\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Creating a polygon with tilted sidewalls via python API | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hello,I am trying to create a polygon with tilted sidewalls in python. I have adapted the script that is given as an example in the artical: Tips for adding sidewall angles to simulation objects \u2013 Ansys OpticsMy python code does look like this: name = &quot;Angled WG&quot;\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/25-10-2024-1729848723-mceclip1.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/25-10-2024-1729848723-mceclip1.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-10-25T09:35:11+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-10-25T09:35:11+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Creating a polygon with tilted sidewalls via python API | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hello,I am trying to create a polygon with tilted sidewalls in python. I have adapted the script that is given as an example in the artical: Tips for adding sidewall angles to simulation objects \u2013 Ansys OpticsMy python code does look like this: name = &quot;Angled WG&quot;\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/25-10-2024-1729848723-mceclip1.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/creating-a-polygon-with-tilted-sidewalls-via-python-api\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/python-scripting\\\/#listItem\",\"name\":\"python-scripting\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/python-scripting\\\/#listItem\",\"position\":3,\"name\":\"python-scripting\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/python-scripting\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/creating-a-polygon-with-tilted-sidewalls-via-python-api\\\/#listItem\",\"name\":\"Creating a polygon with tilted sidewalls via python API\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/creating-a-polygon-with-tilted-sidewalls-via-python-api\\\/#listItem\",\"position\":4,\"name\":\"Creating a polygon with tilted sidewalls via python API\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/python-scripting\\\/#listItem\",\"name\":\"python-scripting\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/creating-a-polygon-with-tilted-sidewalls-via-python-api\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/creating-a-polygon-with-tilted-sidewalls-via-python-api\\\/\",\"name\":\"Creating a polygon with tilted sidewalls via python API | Ansys Learning Forum\",\"description\":\"Hello,I am trying to create a polygon with tilted sidewalls in python. I have adapted the script that is given as an example in the artical: Tips for adding sidewall angles to simulation objects \\u2013 Ansys OpticsMy python code does look like this: name = \\\"Angled WG\\\"\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/creating-a-polygon-with-tilted-sidewalls-via-python-api\\\/#breadcrumblist\"},\"datePublished\":\"2024-10-25T09:35:11+00:00\",\"dateModified\":\"2024-10-25T09:35:11+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Creating a polygon with tilted sidewalls via python API | Ansys Learning Forum","description":"Hello,I am trying to create a polygon with tilted sidewalls in python. I have adapted the script that is given as an example in the artical: Tips for adding sidewall angles to simulation objects \u2013 Ansys OpticsMy python code does look like this: name = \"Angled WG\"","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/python-scripting\/#listItem","name":"python-scripting"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/python-scripting\/#listItem","position":3,"name":"python-scripting","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/python-scripting\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/#listItem","name":"Creating a polygon with tilted sidewalls via python API"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/#listItem","position":4,"name":"Creating a polygon with tilted sidewalls via python API","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/python-scripting\/#listItem","name":"python-scripting"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/","name":"Creating a polygon with tilted sidewalls via python API | Ansys Learning Forum","description":"Hello,I am trying to create a polygon with tilted sidewalls in python. I have adapted the script that is given as an example in the artical: Tips for adding sidewall angles to simulation objects \u2013 Ansys OpticsMy python code does look like this: name = \"Angled WG\"","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/#breadcrumblist"},"datePublished":"2024-10-25T09:35:11+00:00","dateModified":"2024-10-25T09:35:11+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Creating a polygon with tilted sidewalls via python API | Ansys Learning Forum","og:description":"Hello,I am trying to create a polygon with tilted sidewalls in python. I have adapted the script that is given as an example in the artical: Tips for adding sidewall angles to simulation objects \u2013 Ansys OpticsMy python code does look like this: name = &quot;Angled WG&quot;","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/","og:image":"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/25-10-2024-1729848723-mceclip1.png","og:image:secure_url":"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/25-10-2024-1729848723-mceclip1.png","article:published_time":"2024-10-25T09:35:11+00:00","article:modified_time":"2024-10-25T09:35:11+00:00","twitter:card":"summary_large_image","twitter:title":"Creating a polygon with tilted sidewalls via python API | Ansys Learning Forum","twitter:description":"Hello,I am trying to create a polygon with tilted sidewalls in python. I have adapted the script that is given as an example in the artical: Tips for adding sidewall angles to simulation objects \u2013 Ansys OpticsMy python code does look like this: name = &quot;Angled WG&quot;","twitter:image":"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/25-10-2024-1729848723-mceclip1.png"},"aioseo_meta_data":{"post_id":"391356","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 16:21:36","updated":"2026-09-17 08:34:06","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/python-scripting\/\" title=\"python-scripting\">python-scripting<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCreating a polygon with tilted sidewalls via python API\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"python-scripting","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/python-scripting\/"},{"label":"Creating a polygon with tilted sidewalls via python API","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/creating-a-polygon-with-tilted-sidewalls-via-python-api\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["143292","473055"],"_bbp_author_ip":["134.169.113.230"],"_btv_view_count":["327"],"_bbp_topic_status":["unanswered"],"_bbp_notification_enabled":["473055"],"_bbp_topic_id":["391356"],"_bbp_forum_id":["27833"],"_bbp_engagement":["143292","473055"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["391666"],"_bbp_last_active_id":["391666"],"_bbp_last_active_time":["2024-10-29 01:04:13"]},"test":"m-hoormanntu-braunschweig-de"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/391356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/391356\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=391356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}