


{"id":252161,"date":"2023-03-01T15:43:09","date_gmt":"2023-03-01T15:43:09","guid":{"rendered":"\/forum\/forums\/topic\/export-jpg-figures-with-script-commands\/"},"modified":"2023-03-01T15:43:09","modified_gmt":"2023-03-01T15:43:09","slug":"export-jpg-figures-with-script-commands","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/export-jpg-figures-with-script-commands\/","title":{"rendered":"Export .jpg figures with script commands"},"content":{"rendered":"<p>Hello,<br \/>i would like to ask you if it is possible in MODE solutions to export and save figures in jpg or png format from the Visualizer with the use of script commands without using the GUI buttons in the Visualizer. I am using the following script and I am searching for an extra command in order to export the E field distribution in jpg format.<\/p>\n<p>&nbsp;<\/p>\n<p>Thank you!<\/p>\n<p>switchtolayout;<br \/>run;<br \/>runanalysis;<br \/>setanalysis(&#8220;number of trial modes&#8221;,20);<br \/>setanalysis(&#8220;use max index&#8221;,0);<br \/>setanalysis(&#8220;n&#8221;,2.4);<br \/>findmodes;<br \/>results = getresult(&#8220;mode1&#8243;,&#8221;E&#8221;);<br \/>material = getresult(&#8220;material&#8221;,&#8221;index&#8221;);<\/p>\n<p>visualize(results,material);<\/p>\n","protected":false},"template":"","class_list":["post-252161","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["16994","33648"],"_bbp_author_ip":["23.223.149.174"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["776"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["252161"],"_bbp_forum_id":["27833"],"_bbp_engagement":["16994","33648"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["252190"],"_bbp_last_active_id":["252190"],"_bbp_last_active_time":["2023-03-01 18:48:17"]},"test":"evachatcsd-auth-gr"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/252161","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\/252161\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=252161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}