{"id":165105,"date":"2023-03-17T08:59:25","date_gmt":"2023-03-17T08:59:25","guid":{"rendered":"\/knowledge\/forums\/topic\/how-execute-an-ls-prepost-command-file\/"},"modified":"2023-07-31T12:30:36","modified_gmt":"2023-07-31T12:30:36","slug":"how-execute-an-ls-prepost-command-file","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-execute-an-ls-prepost-command-file\/","title":{"rendered":"How execute an LS-PrePost command file?"},"content":{"rendered":"<p>Almost all graphical user interface (GUI) interactions generate commands, and these commands are written to a file called lspost.cfile. Upon exiting LS-PrePost, this file can be renamed to replay the previous session using one of the following methods.  1. By issue the command:  LS-PrePost c=commandfile.cfile in the command prompt or terminal in which the LS-PrePost corresponds to the full path to the LS-PrePost executable. This method launches the LS-PrePost GUI and executes the commands from the command file.   2. LS-PrePost c=commandfile.cfile -nographics This method does not launch the LS-PrePost GUI but still executes the commands in batch mode.  3. By importing the command file into the LS-PrePost GUI through: File -> Open -> Command File This method will open a command file selection dialog. Upon opening a command file, LS-PrePost will display the CFile Dialog.  Command Files can be a powerful tool and have many potential uses, such as performing repetitive tasks and presenting a pre-recorded set of actions to an audience.<\/p>\n","protected":false},"template":"","class_list":["post-165105","topic","type-topic","status-publish","hentry","topic-tag-ls-dyna-suite","topic-tag-ls-prepost","topic-tag-lsdyna","topic-tag-structural-mechanics"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["3\/15\/2023 20:20"],"_bbp_forum_id":["27789"],"_bbp_author_ip":["23.56.168.180"],"_btv_view_count":["6240"],"siebel_km_number":["2068361"],"product_version":[""],"km_published_date":["2022-08-04T00:00:00.000Z"],"family":["Structural Mechanics"],"application_name":["LS-DYNA Suite"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/165105","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\/165105\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=165105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}