


{"id":392193,"date":"2024-10-31T09:39:26","date_gmt":"2024-10-31T09:39:26","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/"},"modified":"2024-10-31T10:05:50","modified_gmt":"2024-10-31T10:05:50","slug":"scripting-help-vertices-and-end-releases","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/","title":{"rendered":"Scripting Help &#8211; Vertices and End Releases"},"content":{"rendered":"<p>&lt;p&gt;I&#8217;m looking to create a script to add end releases to a line body model I have imported with many verticies. The default end release is acceptable as a start point, and I will manually select those that need releases changed at a later point. I would like to have the end releases applied across the board automatically rather than add them manually later.&nbsp;&nbsp;&lt;\/p&gt;&lt;p&gt;&lt;br&gt;I have started by creating a named selection for the vertices:&lt;br&gt;&lt;br&gt;with Transaction(True):&lt;br&gt;&nbsp; &nbsp; # Create an empty named selection for vertices&lt;br&gt;&nbsp; &nbsp; named_selection_vertex = model.AddNamedSelection()&lt;br&gt;&nbsp; &nbsp; named_selection_vertex.Name = &#8220;Vertices&#8221;&lt;br&gt;&lt;br&gt;with Transaction(True):&lt;br&gt;&nbsp; &nbsp; # Create an empty named selection for vertices&lt;br&gt;&nbsp; &nbsp; named_selection_edge = model.AddNamedSelection()&lt;br&gt;&nbsp; &nbsp; named_selection_edge.Name = &#8220;Edges&#8221;&lt;br&gt;&lt;br&gt;And follow that up with trying to gather the verticies and edges into their named selections.&lt;br&gt;&lt;br&gt;And this is where I stumble as I&#8217;m not sure how to call up the vertexes or edges. For bodies etc. i have used datamodelobjectcategory , but they do not exist there. Can i use IGeoVertex in some way?&nbsp;&lt;br&gt;&lt;br&gt;Thanks for your help,&lt;br&gt;&lt;br&gt;Joe&nbsp;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-392193","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I&#039;m looking to create a script to add end releases to a line body model I have imported with many verticies. The default end release is acceptable as a start point, and I will manually select those that need releases changed at a later point. I would like to have the end releases applied across\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/\" \/>\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=\"Scripting Help \u2013 Vertices and End Releases | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"I&#039;m looking to create a script to add end releases to a line body model I have imported with many verticies. The default end release is acceptable as a start point, and I will manually select those that need releases changed at a later point. I would like to have the end releases applied across\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-10-31T09:39:26+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-10-31T10:05:50+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Scripting Help \u2013 Vertices and End Releases | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I&#039;m looking to create a script to add end releases to a line body model I have imported with many verticies. The default end release is acceptable as a start point, and I will manually select those that need releases changed at a later point. I would like to have the end releases applied across\" \/>\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\\\/scripting-help-vertices-and-end-releases\\\/#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\\\/scripting-help-vertices-and-end-releases\\\/#listItem\",\"name\":\"Scripting Help &#8211; Vertices and End Releases\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/scripting-help-vertices-and-end-releases\\\/#listItem\",\"position\":3,\"name\":\"Scripting Help &#8211; Vertices and End Releases\",\"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\\\/scripting-help-vertices-and-end-releases\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/scripting-help-vertices-and-end-releases\\\/\",\"name\":\"Scripting Help \\u2013 Vertices and End Releases | Ansys Learning Forum\",\"description\":\"I'm looking to create a script to add end releases to a line body model I have imported with many verticies. The default end release is acceptable as a start point, and I will manually select those that need releases changed at a later point. I would like to have the end releases applied across\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/scripting-help-vertices-and-end-releases\\\/#breadcrumblist\"},\"datePublished\":\"2024-10-31T09:39:26+00:00\",\"dateModified\":\"2024-10-31T10:05:50+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":"Scripting Help \u2013 Vertices and End Releases | Ansys Learning Forum","description":"I'm looking to create a script to add end releases to a line body model I have imported with many verticies. The default end release is acceptable as a start point, and I will manually select those that need releases changed at a later point. I would like to have the end releases applied across","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/#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\/scripting-help-vertices-and-end-releases\/#listItem","name":"Scripting Help &#8211; Vertices and End Releases"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/#listItem","position":3,"name":"Scripting Help &#8211; Vertices and End Releases","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\/scripting-help-vertices-and-end-releases\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/","name":"Scripting Help \u2013 Vertices and End Releases | Ansys Learning Forum","description":"I'm looking to create a script to add end releases to a line body model I have imported with many verticies. The default end release is acceptable as a start point, and I will manually select those that need releases changed at a later point. I would like to have the end releases applied across","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/#breadcrumblist"},"datePublished":"2024-10-31T09:39:26+00:00","dateModified":"2024-10-31T10:05:50+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":"Scripting Help \u2013 Vertices and End Releases | Ansys Learning Forum","og:description":"I'm looking to create a script to add end releases to a line body model I have imported with many verticies. The default end release is acceptable as a start point, and I will manually select those that need releases changed at a later point. I would like to have the end releases applied across","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/","article:published_time":"2024-10-31T09:39:26+00:00","article:modified_time":"2024-10-31T10:05:50+00:00","twitter:card":"summary_large_image","twitter:title":"Scripting Help \u2013 Vertices and End Releases | Ansys Learning Forum","twitter:description":"I'm looking to create a script to add end releases to a line body model I have imported with many verticies. The default end release is acceptable as a start point, and I will manually select those that need releases changed at a later point. I would like to have the end releases applied across"},"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\tScripting Help \u2013 Vertices and End Releases\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":"Scripting Help &#8211; Vertices and End Releases","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scripting-help-vertices-and-end-releases\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":["77.104.130.57"],"_btv_view_count":["114"],"_bbp_topic_status":["unanswered"],"_bbp_subscription":["58821","349602"],"_bbp_status":["publish"],"_bbp_topic_id":["392193"],"_bbp_forum_id":["27791"],"_bbp_engagement":["58821","349602"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["392201"],"_bbp_last_active_id":["392201"],"_bbp_last_active_time":["2024-10-31 10:05:44"]},"test":"joe-lindleyredengineering-co-uk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/392193","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\/392193\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=392193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}