{"id":158630,"date":"2022-06-06T10:33:12","date_gmt":"2022-06-06T10:33:12","guid":{"rendered":"\/knowledge\/forums\/topic\/how-can-i-select-all-bodies-in-the-design-from-within-a-spaceclaim-script\/"},"modified":"2022-06-06T10:33:12","modified_gmt":"2022-06-06T10:33:12","slug":"how-can-i-select-all-bodies-in-the-design-from-within-a-spaceclaim-script","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-can-i-select-all-bodies-in-the-design-from-within-a-spaceclaim-script\/","title":{"rendered":"How can I select all bodies in the design from within a SpaceClaim script?"},"content":{"rendered":"<p>There are a couple simple options that can be used to do this. One option is to use the syntax: targets = Selection.SelectAll() And another options is to use: part = Window.ActiveWindow.Document.MainPart targets = Selection.Create(part.Bodies)<\/p>\n","protected":false},"template":"","class_list":["post-158630","topic","type-topic","status-publish","hentry","topic-tag-ansys-spaceclaim","topic-tag-select-bodies"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["06-03-2022 20:20"],"_bbp_forum_id":["153048"],"_btv_view_count":["5026"],"_bbp_likes_count":["0"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/158630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/158630\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=158630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}