


{"id":408559,"date":"2025-02-06T00:05:09","date_gmt":"2025-02-06T00:05:09","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/ansys-scripting-how-to-probe-the-what-the-edge-ids-of-a-given-face-id-are\/"},"modified":"2025-02-06T00:05:09","modified_gmt":"2025-02-06T00:05:09","slug":"ansys-scripting-how-to-probe-the-what-the-edge-ids-of-a-given-face-id-are","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/ansys-scripting-how-to-probe-the-what-the-edge-ids-of-a-given-face-id-are\/","title":{"rendered":"Ansys Scripting: How to probe the what the edge IDs of a given face ID are"},"content":{"rendered":"<p>&lt;p&gt;I&#8217;m very new to ansys scripting, so this may be a trivial question, but I couldn&#8217;t find it asked anywhere else and have hit a roadblock.&lt;\/p&gt;&lt;p&gt;Background: I would like to create individual named selections for coplanar holes in a solid body, with the context of the holes being a bolt pattern. I would like the user to only have to specify a radii range and a coordinate range (pick all coplanar holes of a given size).&lt;\/p&gt;&lt;p&gt;Currently I have a script (attached) that creates a named selection for all holes (faces) on the body that meet the criteria. I envisioned the following next steps:&lt;\/p&gt;<\/p>\n<ul>\n<li>Generate a list of all the face IDs in the named selection I created<\/li>\n<li>Search for which face IDs share edge IDs (which cylindrical faces are part of the same hole)<\/li>\n<li>Create a named selection for those two faces that share an edge\n<ul>\n<li>Do this for all face IDs in the list without repeating&nbsp;<\/li>\n<\/ul>\n<\/li>\n<li>Once a named selection has been generated for each hole I would delete the original named selection that included all the holes<\/li>\n<\/ul>\n<p>&lt;p&gt;I am currently stuck on the second bullet. I can&#8217;t figure out a way to investigate the edge IDs of a given face ID, and compare those to the edge ID of all other face IDs. Any guidance or feedback on a different approach would be appreciated.&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/02\/06-02-2025-1738800301-mceclip0.png\" \/>&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-408559","topic","type-topic","status-publish","hentry","topic-tag-scripting"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27791"],"_bbp_topic_id":["408559"],"_bbp_subscription":["511731","58821"],"_bbp_author_ip":["192.16.76.32"],"_bbp_last_reply_id":["408992"],"_bbp_last_active_id":["408992"],"_bbp_last_active_time":["2025-02-10 07:43:25"],"_bbp_reply_count":["5"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["511731","58821"],"_btv_view_count":["239"],"_bbp_topic_status":["unanswered"]},"test":"cbarlowblueorigin-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/408559","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\/408559\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=408559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}