


{"id":359676,"date":"2024-03-30T18:00:24","date_gmt":"2024-03-30T18:00:24","guid":{"rendered":"\/forum\/forums\/topic\/spaceclaim-api-select-faces-at-given-coordinates\/"},"modified":"2024-03-30T18:37:12","modified_gmt":"2024-03-30T18:37:12","slug":"spaceclaim-api-select-faces-at-given-coordinates","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/spaceclaim-api-select-faces-at-given-coordinates\/","title":{"rendered":"Spaceclaim API &#8211; Select faces at given coordinates"},"content":{"rendered":"<p>Hello everybody!<\/p>\n<p>I am generating multiple geometries with an own-written code. I am struggling to identify the commands to select faces of my geometries of which I know the coordinates (x, y, z).<\/p>\n<p>I&#8217;ll be more specific. In the attached picture is depicted a cube of dimensions L = 10;&nbsp; W = 10; H = 20 [mm]: I want to select the face at the top of the structure (highlighted in orange) of which I know the coordinates, then use the NamedSelection.Create() command. One of my ideas was to create planes at those coordinates and then find the intersections with my geometry, but I couldn&#8217;t develop my code.<\/p>\n<p>I tried to use the split body tool but with no luck. Same with filter by bounding box (also described here \/forum\/forums\/topic\/spaceclaim-script-selection-by-filterbyboundingbox\/)<\/p>\n<p>I already made searches on the forum and the web but with poor results. Any kind of help is appreciated, thanks in advance \ud83d\ude42<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/30-03-2024-1711821487-1.png\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/30-03-2024-1711821487-1.png\" alt=\"\"><\/a>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-359676","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["23572","170445"],"_bbp_author_ip":["23.206.193.146"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["3392"],"_bbp_topic_status":["unanswered"],"_edit_lock":["1711823593:227084"],"_bbp_topic_id":["359676"],"_bbp_forum_id":["27790"],"_bbp_engagement":["23572","170445"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["360049"],"_bbp_last_active_id":["360049"],"_bbp_last_active_time":["2024-04-02 14:43:23"]},"test":"pasquale-posabella-doktpw-edu-pl"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/359676","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":2,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/359676\/revisions"}],"predecessor-version":[{"id":359681,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/359676\/revisions\/359681"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=359676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}