×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Command Line Only

Command Line Only

Command Line Only

(OP)
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?

 

RE: Command Line Only

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources