There are two choices to generate the command file: Directly type in the commands into a text file from scratch. This assumes a good knowledge of the ANSYS command language and the associated options. If you know what some of the commands and are unsure of others, execute the desi red operation from the GUI and then go to File -> List -> Log File. This will th en open up a new window showing the command line equivialent of all commands ent ered to this point. You may directly cut and paste from here to a text editor, o r if you'd like to save the whole file, see the next item in this list. Setup and solve the problem as you normally would using the ANSYS graphic user i nterface (GUI). Then before you are finished, enter the command File -> Save DB Log File This saves the equivalent ANSYS commands that you entered in the GUI mo de, to a text file. You can now edit this file with a text editor to clean it up , delete errors from your GUI use and make changes as desired. Running the Command File To run the ANSYS command file, save the ASCII text commands in a text file; e.g. frame.cmd start up either the GUI or text mode of ANSYS GUI Command File Loading To run this command file from the GUI, you would do the following: From the File menu, select Read Input from.... Change to the appropriate directo ry where the file (frame.cmd) is stored and select it. Now ANSYS will execute the commands from that file. The output window shows the progress of this procedure. Any errors and warnings will be listed in this windo w. When it is complete, you may not have a full view of your structure in the graph ic window. You may need to select Plot -> Elements or Plot -> Lines or what have you. Assuming that the analysis worked properly, you can now use the post-processor t o view element deflections, stress, etc. If you want to fix some errors or make some changes to the command file, make th ose changes in a separate window in a text editor. Save those changes to disk. To rerun the command file, you should first of all clear the current model from ANSYS. Select File -> Clear & Start New. Then read in the file as before File -> Read Input from... Command Line File Loading Alternatively, you can also read in the command file right from the ANSYS comman d line. Assuming that you started ANSYS using the commands... /ansys52/bin/ansysu52 and then entered /show,x11c This has now started ANSYS in the text mode and has told it what graphic device to use (in this case an X Windows, X11c, mode). At this point you could type in /menu,on, but you might not want to turn on the full graphic mode if working on a slow machine or if you are executing the program remotely. Let's assume that w e don't turn the menu mode on... If the command file is in the current directory for ANSYS, then from the ANSYS i nput window, type /input,frame,cmd and yes that is a comma (,) between frame and cmd. If ANSYS can not find the fil e in the current directory, you may need to point it to the proper directory. If the file was in the directory, /myfiles/ansys/frame for example, you would use the following syntax /input,frame,cmd,/myfiles/ansys/frame If you want to rerun a new or modified file, it is necessary to clear the curren t model in memory with the command