What is the proper sequence, character, special character to end a script commands generated with Notepad?
Such that the command is properly executed and is not influenced by following commands. I desire a solution that is appropriate for all commands but am having a specific problem with "Zoom Extents".
Thanks...
What is the proper sequence, character, special character to end a script commands generated with Notepad?
Such that the command is properly executed and is not influenced by following commands. I desire a solution that is appropriate for all commands but am having a specific problem with "Zoom Extents".
Thanks...
Hi,
>> end a script commands generated with Notepad?
The last command should end with an <ENTER>
- alfred -
Hi,
>> end a script commands generated with Notepad?
The last command should end with an <ENTER>
- alfred -
Pasting <ENTER> in the command line with or without <> prompt "Unknown command".
Pasting <ENTER> in the command line with or without <> prompt "Unknown command".
At the end of each line of text in a Notepad file is an invisible character that indicates it is the end of that line of text. You want to make sure that the last line of your script also has this end-of-line character. For example, if you wanted a script to draw three circles it might look like this:
Note that the cursor is at the start of the 4th line. Hit the down arrow a few times to check that there aren't additional blank lines in the file.
For example if Notepad showed the following it would indicate that you have an extra end-of-line character (the cursor is at the start of the 5th line) and that running this script would use an extra "enter" when it was done resulting in a re-execution of the circle command with a prompt to enter the circle center.
Place the cursor at the start of your Notepad file and use Ctrl-End from the keyboard. It should place the cursor at the end of the file. Check that it is after the last line of text.
At the end of each line of text in a Notepad file is an invisible character that indicates it is the end of that line of text. You want to make sure that the last line of your script also has this end-of-line character. For example, if you wanted a script to draw three circles it might look like this:
Note that the cursor is at the start of the 4th line. Hit the down arrow a few times to check that there aren't additional blank lines in the file.
For example if Notepad showed the following it would indicate that you have an extra end-of-line character (the cursor is at the start of the 5th line) and that running this script would use an extra "enter" when it was done resulting in a re-execution of the circle command with a prompt to enter the circle center.
Place the cursor at the start of your Notepad file and use Ctrl-End from the keyboard. It should place the cursor at the end of the file. Check that it is after the last line of text.
I am not aware of any command that will indicate the end a script, a space is considered a Return (Enter Key pressed) and a new line is also considered a Return and has to be used in some cases.
What we tend to do is add a command after our script. In this case qsave is the last command so there can’t be any spaces or returns after this.
zoom
extents
qsave
Script files can also contain comments, any line that begins with a semicolon (;) is considered a comment, and AutoCAD ignores it while processing the script file, you can’t have any empty lines after this as they will be considered as a return.
;Start of Script routine
zoom
extents
qsave
;End of Script routine
Patrick
http://www.multi-batch.com/
For your entire batch scripting needs
I am not aware of any command that will indicate the end a script, a space is considered a Return (Enter Key pressed) and a new line is also considered a Return and has to be used in some cases.
What we tend to do is add a command after our script. In this case qsave is the last command so there can’t be any spaces or returns after this.
zoom
extents
qsave
Script files can also contain comments, any line that begins with a semicolon (;) is considered a comment, and AutoCAD ignores it while processing the script file, you can’t have any empty lines after this as they will be considered as a return.
;Start of Script routine
zoom
extents
qsave
;End of Script routine
Patrick
http://www.multi-batch.com/
For your entire batch scripting needs
Can't find what you're looking for? Ask the community or share your knowledge.