


{"id":354949,"date":"2024-03-02T19:08:46","date_gmt":"2024-03-02T19:08:46","guid":{"rendered":"\/forum\/forums\/topic\/reading-results-from-command-object\/"},"modified":"2024-03-06T02:28:18","modified_gmt":"2024-03-06T02:28:18","slug":"reading-results-from-command-object","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/reading-results-from-command-object\/","title":{"rendered":"Reading Results from Command Object"},"content":{"rendered":"<p>Hi Everyone<\/p>\n<p>I have been trying to find the code used to read the results written in a command object script. I am using the static structural module and an example of the desired result is from &#8220;my_rotx=ROTX(RemotePoint)&#8221;.&nbsp;In the Solution portion of the tree my command file shows the results, although using ACT python I&#8217;m unable find a way to save those results to a variable so I can output them into a csv file.<\/p>\n<p>An exmaple of the code I&#8217;m looking for may look like this.<\/p>\n<p>CMD = ExtAPI.DataModel.GetObjectById(724)&nbsp; # this is the object ID of the command object named &#8220;Deformations&#8221;<\/p>\n<p>variable_name = CMD.OutputResults(my_rotx)&nbsp; # this is the line of code I am trying to determine<\/p>\n<p>Any advice is appreciated. Thank you.<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/02-03-2024-1709406427-mceclip1.png\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/02-03-2024-1709406427-mceclip1.png\"><\/a><\/p>\n","protected":false},"template":"","class_list":["post-354949","topic","type-topic","status-closed","hentry","topic-tag-automationACT-1","topic-tag-python-scripting"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["70328","170445"],"_bbp_author_ip":["23.218.248.146"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["408"],"_bbp_topic_status":["answered"],"_edit_lock":["1709552220:221391"],"_bbp_topic_id":["354949"],"_bbp_forum_id":["27791"],"_bbp_engagement":["70328","170445"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["355510"],"_bbp_last_active_id":["355510"],"_bbp_last_active_time":["2024-03-06 02:28:55"]},"test":"imraan-bokharim3eng-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/354949","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":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/354949\/revisions"}],"predecessor-version":[{"id":355120,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/354949\/revisions\/355120"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=354949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}