Any one knows the purpose of using a semicolon after EAGLE command line? I put a semicolon after the command MOVE, EAGLE did not respond. I'm confused...
Any one knows the purpose of using a semicolon after EAGLE command line? I put a semicolon after the command MOVE, EAGLE did not respond. I'm confused...
Hi,
the semicolon terminates a command. It is mainly used in script files. So you can have for example several commadns in one commone line. In the command line of one of the editro windows it is in most cases not neccessary to use it because you will hit the enter key for executing the command.
You mentioned the example MOVE.
To move a component you type MOVE IC2 and hit the enter key.
If you type MOVE and hit the enter key, MOVE will be active and you have to click onto a object.
If you type MOVE; and hit the enter key, MOVE will be activated and terminated. The command does not stay active and you can't move an object anymore.
Example for a line in a script file:
MOVE IC2; DISPLAY TOP; WIRE (0 0) (1 1); MOVE R12;
You see the ; separates/terminates the commands.
Regards,
Richard
Thanks a lot!
I have another question about the words containing a underscore. For example, the Command syntax " SET color_layer layer_name color_code", I'm confused about the conditions under which a key words should be or should not be replaced by a number or other characters in actual command line. In this command, color_layer needs to remain unchanged, but layer_name and color_code should be replaced by a name and a color code. How do I identify which key words should be replaced or not?
Hi Michael,
let's take the SET command as an example:
SET COLOR_LAYER layer color
The first word is the set option. It is usually written in capital letters (at least in the EAGLE help and in the manual). This is of course part ot the command and must be unchanged. layer and color are paramters, which are erplaced by names, numbers or what ever makes sense there. Layer and color can be a name or a number, like in
SET COLOR_LAYER top red;
or
SET COLOR_LAYER 1 3;
Hope this helps.
Regards,
Richard
Thank you, now I understand. By the way, the example of this command on page 78 of the Mannual said "SET COLOR_LAYER layer_name color_code", in which three key words contain underscores. I think they are confusing and it's better to replace layer_name and color_code with "layer" and "color" in the Mannual so as to make it more clear for readers.