


{"id":393886,"date":"2024-11-12T19:09:32","date_gmt":"2024-11-12T19:09:32","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/"},"modified":"2024-12-04T13:06:04","modified_gmt":"2024-12-04T13:06:04","slug":"replacing-nth-element-of-array","status":"answered","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/","title":{"rendered":"Replacing Nth element of array"},"content":{"rendered":"<p>&lt;p&gt;&lt;p&gt;I can replace the element at a fixed index of an array using the Assign of Structured Element Array Operator.&nbsp;&lt;br&gt;However I need to replace the Nth element, where N is an input to my function &#8211; when I try this (using N instead of some constant) I hit&nbsp;&lt;\/p&gt;&lt;p&gt;<strong>Type Error ERR_105 Not a size expression at REFRESH_CMD_TIMEOUT\/_L21=&nbsp;<\/strong>&lt;\/p&gt;&lt;p&gt;<strong>Identifier N should be bound to a static size expression&nbsp;<\/strong>&lt;\/p&gt;&lt;p&gt;Can someone let me know if a. this is possible, and b. if possible, how to proceed&lt;\/p&gt;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-393886","topic","type-topic","status-answered","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I can replace the element at a fixed index of an array using the Assign of Structured Element Array Operator. However I need to replace the Nth element, where N is an input to my function - when I try this (using N instead of some constant) I hit Type Error ERR_105 Not a size expression at\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/\" \/>\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=\"Replacing Nth element of array | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"I can replace the element at a fixed index of an array using the Assign of Structured Element Array Operator. However I need to replace the Nth element, where N is an input to my function - when I try this (using N instead of some constant) I hit Type Error ERR_105 Not a size expression at\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-11-12T19:09:32+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-12-04T13:06:04+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Replacing Nth element of array | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I can replace the element at a fixed index of an array using the Assign of Structured Element Array Operator. However I need to replace the Nth element, where N is an input to my function - when I try this (using N instead of some constant) I hit Type Error ERR_105 Not a size expression at\" \/>\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\\\/replacing-nth-element-of-array\\\/#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\\\/replacing-nth-element-of-array\\\/#listItem\",\"name\":\"Replacing Nth element of array\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/replacing-nth-element-of-array\\\/#listItem\",\"position\":3,\"name\":\"Replacing Nth element of array\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}}]},{\"@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\\\/replacing-nth-element-of-array\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/replacing-nth-element-of-array\\\/\",\"name\":\"Replacing Nth element of array | Ansys Learning Forum\",\"description\":\"I can replace the element at a fixed index of an array using the Assign of Structured Element Array Operator. However I need to replace the Nth element, where N is an input to my function - when I try this (using N instead of some constant) I hit Type Error ERR_105 Not a size expression at\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/replacing-nth-element-of-array\\\/#breadcrumblist\"},\"datePublished\":\"2024-11-12T19:09:32+00:00\",\"dateModified\":\"2024-12-04T13:06:04+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":"Replacing Nth element of array | Ansys Learning Forum","description":"I can replace the element at a fixed index of an array using the Assign of Structured Element Array Operator. However I need to replace the Nth element, where N is an input to my function - when I try this (using N instead of some constant) I hit Type Error ERR_105 Not a size expression at","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/#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\/replacing-nth-element-of-array\/#listItem","name":"Replacing Nth element of array"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/#listItem","position":3,"name":"Replacing Nth element of array","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}}]},{"@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\/replacing-nth-element-of-array\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/","name":"Replacing Nth element of array | Ansys Learning Forum","description":"I can replace the element at a fixed index of an array using the Assign of Structured Element Array Operator. However I need to replace the Nth element, where N is an input to my function - when I try this (using N instead of some constant) I hit Type Error ERR_105 Not a size expression at","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/#breadcrumblist"},"datePublished":"2024-11-12T19:09:32+00:00","dateModified":"2024-12-04T13:06:04+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":"Replacing Nth element of array | Ansys Learning Forum","og:description":"I can replace the element at a fixed index of an array using the Assign of Structured Element Array Operator. However I need to replace the Nth element, where N is an input to my function - when I try this (using N instead of some constant) I hit Type Error ERR_105 Not a size expression at","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/","article:published_time":"2024-11-12T19:09:32+00:00","article:modified_time":"2024-12-04T13:06:04+00:00","twitter:card":"summary_large_image","twitter:title":"Replacing Nth element of array | Ansys Learning Forum","twitter:description":"I can replace the element at a fixed index of an array using the Assign of Structured Element Array Operator. However I need to replace the Nth element, where N is an input to my function - when I try this (using N instead of some constant) I hit Type Error ERR_105 Not a size expression at"},"aioseo_meta_data":[],"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\tReplacing Nth element of array\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":"Replacing Nth element of array","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":["57.140.28.1"],"_btv_view_count":["456"],"_bbp_topic_status":["answered"],"_edit_last":["461156"],"_bbp_revision_log":["a:1:{i:393890;a:2:{s:6:\"author\";i:461156;s:6:\"reason\";s:0:\"\";}}"],"_bbp_subscription":["461156","397"],"_bbp_topic_id":["393886"],"_bbp_forum_id":["27795"],"_bbp_engagement":["461156","397"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["396271"],"_bbp_last_active_id":["396271"],"_bbp_last_active_time":["2024-12-04 13:05:54"]},"test":"jeremy-rutmanus-af-mil"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/393886","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":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/393886\/revisions"}],"predecessor-version":[{"id":393890,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/393886\/revisions\/393890"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=393886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}