{"id":170801,"date":"2023-06-05T07:05:09","date_gmt":"2023-06-05T07:05:09","guid":{"rendered":"\/knowledge\/forums\/topic\/how-to-get-values-of-parameter-p1-for-all-dps-into-a-list-using-workbench-scripting\/"},"modified":"2023-07-31T12:33:48","modified_gmt":"2023-07-31T12:33:48","slug":"how-to-get-values-of-parameter-p1-for-all-dps-into-a-list-using-workbench-scripting","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-get-values-of-parameter-p1-for-all-dps-into-a-list-using-workbench-scripting\/","title":{"rendered":"How to get values of parameter P1 for all DPs into a list using workbench scripting?"},"content":{"rendered":"<p>allsys = GetAllSystems() system1 =allsys[0]  dp= Parameters.GetAllDesignPoints() pp = Parameters.GetParameter(Name=&#8217;P1&#8242;) my_par_list=[] BodyCounts=[]  for k in range(len(dp)):  dpp = Parameters.GetDesignPoint(Name=k.ToString())  my_par_list.append(dpp.GetParameterValue(Parameter=pp))<\/p>\n","protected":false},"template":"","class_list":["post-170801","topic","type-topic","status-publish","hentry","topic-tag-4422","topic-tag-general","topic-tag-scripting-journaling","topic-tag-structural-mechanics","topic-tag-workbench-platform"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["2\/6\/2023 20:20"],"_bbp_forum_id":["27789"],"_bbp_author_ip":["209.182.204.162"],"_btv_view_count":["887"],"siebel_km_number":["2051274"],"product_version":["18"],"km_published_date":["2017-09-13T00:00:00.000Z"],"family":["Structural Mechanics"],"application_name":["Workbench Platform"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/170801","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\/170801\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=170801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}