


{"id":353016,"date":"2024-02-22T07:50:53","date_gmt":"2024-02-22T07:50:53","guid":{"rendered":"\/forum\/forums\/topic\/script-get-point-coordinates-selected-in-spaceclaim\/"},"modified":"2024-03-04T07:37:15","modified_gmt":"2024-03-04T07:37:15","slug":"script-get-point-coordinates-selected-in-spaceclaim","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/script-get-point-coordinates-selected-in-spaceclaim\/","title":{"rendered":"[Script] Get point coordinates selected in SpaceClaim"},"content":{"rendered":"<p>Hello,<\/p>\n<p>Here&#8217;s my problem: I&#8217;d like to write a Python script that gets the x, y and z coordinates of two points I&#8217;ve selected in SpaceClaim.<\/p>\n<p>To do this, I&#8217;ve written the following code:<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/22-02-2024-1708587878-commande_non_fonctionnelle.png\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/22-02-2024-1708587878-commande_non_fonctionnelle.png\" alt=\"Python code\"><\/a><\/p>\n<p>However, the code is sometimes functional, and sometimes non-functional (the &#8220;EdgePoint1&#8221; command is no longer recognised).<\/p>\n<p>On the left, the command is not working. On the right, the command is working.<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/22-02-2024-1708587924-commande_non_fonctionnelle.png\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/22-02-2024-1708587924-commande_non_fonctionnelle.png\" alt=\"Not working\"><\/a><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/22-02-2024-1708588013-commande_fonctionnelle.png\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/22-02-2024-1708588013-commande_fonctionnelle.png\" alt=\"working\"><\/a><\/p>\n<p>My questions are as follows:<br \/>1- Why is the EdgePoint1 command not always recognised? (And what can I do?)<br \/>2- In general, how can I recover the selections made in SpaceClaim in the Python script (to recover faces, solids, etc.)?<\/p>\n<p>Thank you,<br \/>Jean<\/p>\n","protected":false},"template":"","class_list":["post-353016","topic","type-topic","status-closed","hentry","topic-tag-automationACT-1","topic-tag-python-ironpython-1","topic-tag-moderator-spaceclaim","topic-tag-script","topic-tag-spaceclaim"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["74599","2328"],"_bbp_author_ip":["23.52.43.88"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1045"],"_bbp_topic_status":["answered"],"_edit_lock":["1709537802:207763"],"_bbp_topic_id":["353016"],"_bbp_forum_id":["27789"],"_bbp_engagement":["2328","74599"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["353811"],"_bbp_last_active_id":["353811"],"_bbp_last_active_time":["2024-02-26 12:53:07"]},"test":"jean-collombcegelec-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/353016","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\/353016\/revisions"}],"predecessor-version":[{"id":355037,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/353016\/revisions\/355037"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=353016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}