Recording Files
Recording files
This figure (right) shows the control panel.
The button in the launcher box maps this panel, which manages the recording of commands.
It works exactly like a tape-recorder: you can use the button to switch on recording, and all subsequent commands are recorded until it is turned off again by .
It has two modes:
Actually records commands. This is the default.
Allows you to go back and forth to review recorded commands.

How files are recordedWhen in mode, with the button depressed, every command, screen-pick, button press, etc (except those in the command file control panels) is recorded in an internal file. You could think of this as being the tape of a video recorder, with each video "frame" representing a command. |
|
As each command is stored it is
also reported in the
area at the base of the box.
Each command ha a unique line number, and in this example line #1 (out of 1 line recorded so far) is the command /ac in the dialogue box. |
|
Reviewing stored commandsIf you switch from mode to mode then you will find that all the tape recorder buttons become live, and that (implicitly) command recording stops. You will also note that the button becomes a button: |
|
|
In review mode you can list stored commands using the commands shown here. |
|
| REVIEW > | Plays the recorded commands forwards from the current position, listing them in the box as described above. A time delay of 1 second between commands is left by default, but you can alter this using the options. halts this process. |
| STEP < & > | Respectively step backwards and backwards a single command. |
| SEARCH << & >> |
Respectively search backwards and forwards for a specified command.
You can search for any permutation of box name, function or dialogue string. The options shown here are presented to you when you use either button. It is recommended that you use the [ ] buttons to identify boxes or functions from menus, as these will get the syntax right. Command string searches are not case sensitive. |
|
| TOP & END | Will take you to line #1 and the last line respectively. | |
| Goto line: | Will take you to the line number you specify. | |
Editing and overwriting commandsWhen you switch back into mode and start recording commands again, they start being recorded at the current position in the file. So if you have moved backwards during a , then start recording, you will overwrite commands stored at that point - just as would happen in an ordinary tape-recorder.
|
| Commands are overwritten on a line-by-line basis. Consider this example: | |
|
|
In this situation the original four commands (#13 to #16) will be overwritten, but commands #17 to #20 will be unchanged.
To delete commands from the current position to end of file use the button.
It is possible to edit command files using a text editor. WE recommend using command-line commands where these are available. These can be inserted in the file amongst button-click commands. To find out about the command-line menu system, type H or M in the dialogue box.
Inserting index marksYou can put markers, "index marks", on any line in your file. These have no command significance, but are useful as targets for search operations. The command options are shown here. Index marks can be and ed, and you can search for them in either direction with the buttons. |
|
Writing out filesFiles are stored as internal scratch files, and must be written out to disk in ASCII form before they can be read back in. This is done by the command. |
| WARNING: |
If you record a file, and then exit D3PLOT without issuing the command, your recorded commands will be lost. |
The format of the ASCII file, and advice on editing it, is given here .