{"id":164740,"date":"2023-03-17T08:58:33","date_gmt":"2023-03-17T08:58:33","guid":{"rendered":"\/knowledge\/forums\/topic\/how-can-i-get-the-part-id-for-a-part-that-is-created-with-a-python-script\/"},"modified":"2023-07-31T12:26:10","modified_gmt":"2023-07-31T12:26:10","slug":"how-can-i-get-the-part-id-for-a-part-that-is-created-with-a-python-script","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-can-i-get-the-part-id-for-a-part-that-is-created-with-a-python-script\/","title":{"rendered":"How can I get the part id for a part that is created with a Python script?"},"content":{"rendered":"<p>The following will return the last part id. So if this command is issued immediately after the part is created, you will be able to retrieve the part id for that part.  lastpartid = max(ensight.objs.core.PARTS).PARTNUMBER<\/p>\n","protected":false},"template":"","class_list":["post-164740","topic","type-topic","status-publish","hentry","topic-tag-2020-r1","topic-tag-ensight","topic-tag-fluid-dynamics","topic-tag-scripting"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["3-15-2023  20:20:04"],"_bbp_forum_id":["27796"],"_bbp_author_ip":["23.56.168.180"],"_btv_view_count":["804"],"siebel_km_number":["2062660"],"product_version":["2020 R1"],"km_published_date":["2020-05-01T00:00:00.000Z"],"family":["Fluid Dynamics"],"application_name":["Ensight"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/164740","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\/164740\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=164740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}