Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Line Only

Status
Not open for further replies.

dfaunce

Aerospace
Joined
Sep 25, 2009
Messages
8
Location
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?

 
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.

Part and Inventory Search

Sponsor

Back
Top