×
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

Waiting for user input

Waiting for user input

Waiting for user input

(OP)
Hi Everybody!

I am working on an Autocad project and I would like to get information about how can I do the example above:

I would like to write a script (only script, I don't want to use blocks), that if I run waits for a point which is specified by the user and after that from that point the script draws a rectangle. I looked after it in the turorial and i found infos about a special character for it called "\" but it didn't worked.

it is important for me that if the user run the script be an opportunity to pick a user point.

If you have any idea please write down.

Thank you,

Bye,

George

RE: Waiting for user input

George,

you can't use a script, if you want to select objects, points, etc...

But you can customize a button-macro like

CODE

^C^C_rectangle;\@10,10;

Lothar

ADT 2004
ACAD 2002

RE: Waiting for user input

You can do it in a lisp routine as well.
There is a function "getpoint" which will expect a point from the user.  In a lisp you could do something like,

(setq p1 (getpoint "\nPick point:"))

The text pick point will be on the command line.  There is a bit more involed than just this, so you should do some research on writing lisps.

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