Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Waiting for user input

Status
Not open for further replies.

Gyurez

Structural
Sep 20, 2006
1
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
 
Replies continue below

Recommended for you

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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor