{"id":164492,"date":"2023-03-17T08:57:53","date_gmt":"2023-03-17T08:57:53","guid":{"rendered":"\/knowledge\/forums\/topic\/how-to-load-an-ensight-session-file-from-the-command-line\/"},"modified":"2023-07-31T12:25:40","modified_gmt":"2023-07-31T12:25:40","slug":"how-to-load-an-ensight-session-file-from-the-command-line","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-load-an-ensight-session-file-from-the-command-line\/","title":{"rendered":"How to load an EnSight session file from the command line"},"content":{"rendered":"<p>The following is the Python command for loading a session file: ensight.objs.ensxml_restore_file(r&#8221;&#8221;&#8221;test.ens&#8221;&#8221;&#8221;)  If this command is put in a .py file, EnSight can be run from the command line with: ensight102 -p loadsession.py, which will run the Python file, and in turn load the session file.  Similarly, the following is the Python command for loading a context file: ensight.file.restore_context(&#8220;test.ctx&#8221;)<\/p>\n","protected":false},"template":"","class_list":["post-164492","topic","type-topic","status-publish","hentry","topic-tag-10-2","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:00"],"_bbp_forum_id":["27796"],"_bbp_author_ip":["23.56.168.180"],"_btv_view_count":["783"],"siebel_km_number":["2056417"],"product_version":["10.2"],"km_published_date":["2018-09-19T00: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\/164492","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\/164492\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=164492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}