Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Command Line Only

Status
Not open for further replies.

dfaunce

Aerospace
Sep 25, 2009
8
0
0
US
I'm writing a script and for the life of me I cannot figure out how to perform one of the simplest functions in CAD. Because this is a script I cannot use a mouse, only command prompt.

Technically I want this:

ZOOM
SELECTION
10,-10 -40,40


and then I also tried this:

ZOOM
SELECTION
10,-10
-40,40


I want it to select all object between 10,-10 and -40,40 and perform the ZOOM->SELECTION function.

The problem is that the command prompt will neither accept a "space" nor a new line after my first point (10,-10).

I know this is achievable, I just can't figure out the right syntax. Can anyone help?

 
Replies continue below

Recommended for you

This is what I put in a .scr file in NotePad, and it seemed to work.

zoom se 10,-10 -40,40 chr


There is an "Enter" or line feed, or whatever, after the "chr". For whatever reason, the script wouldn't work without it...

Steve R.
 
Status
Not open for further replies.
Back
Top