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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Osnaps in LISP

Status
Not open for further replies.

Volk359

Technical User
Jun 30, 2004
395
0
0
US
Greetings all,

In my lisp I'm trying to grab a corner of a box using endpoint osnap:

(setq pt1 (osnap (getpoint "\nSELECT LOWER RIGHT CORNER:") "endp"))

The getpoint works but it doesn't prompt for the endpoint. Any suggestions?

Thanks,

Keith
 
The lidp "osnap" will not cause AutoCAD to have a particular osnap active, but it will cause the result 'pt1' to be the point as if the osnap was active.

If you want just the 'endpoint' snap active when user selects, you could set the snap just before tht line, as in:

(setvar "osmode" 1);;or whatever endpt is

then you should restore osmode to original setting

 
Dang, I should have thought of that but was concentrating too much on the getpoint. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top