


{"id":246731,"date":"2023-01-17T09:32:38","date_gmt":"2023-01-17T09:32:38","guid":{"rendered":"\/forum\/forums\/topic\/ansys-mechanical-python-scripting-access-and-input-parameter-2\/"},"modified":"2023-01-17T09:32:38","modified_gmt":"2023-01-17T09:32:38","slug":"ansys-mechanical-python-scripting-access-and-input-parameter-2","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/ansys-mechanical-python-scripting-access-and-input-parameter-2\/","title":{"rendered":"Ansys Mechanical &#8211; Python Scripting &#8211; Access and input parameter"},"content":{"rendered":"<p>Regarding Ansys Mechanical, i was wondering if is possible to create an input parameter and call it back in the Ansys Mechanical Python scripting<\/p>\n<p>Let say, create a new input paramter like in the following image,<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/01\/16-01-2023-1673880580-pregunta_ansys_1.PNG\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/01\/16-01-2023-1673880580-pregunta_ansys_1.PNG\" alt=\"\"><\/a><\/p>\n<p>How to call back this parameter in Python Scripting from Ansys Mechanical?&nbsp;<\/p>\n<p>Model.GetParameter(&#8220;NewParameter&#8221;)&nbsp; is not working<\/p>\n<p>How can I create a new Parameter via scripting?<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/01\/16-01-2023-1673880699-pregunta_ansys_2.PNG\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/01\/16-01-2023-1673880699-pregunta_ansys_2.PNG\" alt=\"\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-246731","topic","type-topic","status-closed","hentry","topic-tag-python-ironpython-1","topic-tag-mechanical","topic-tag-workbench"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["242000","200","290130"],"_bbp_author_ip":["23.220.96.181"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1706"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["246731"],"_bbp_forum_id":["27790"],"_bbp_engagement":["200","242000","290130"],"_bbp_voice_count":["3"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["294732"],"_bbp_last_active_id":["294732"],"_bbp_last_active_time":["2023-07-25 13:15:17"]},"test":"flahuertaitainnova-es"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/246731","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":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/246731\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=246731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}