CAD/CAM discussion forum > CAD > OSNAP in Autolisp

OSNAP in Autolisp

  Subscribe Topic

Rank: 1



posts: 20

Registered: 2009-3-4

Message 1 of 2

26-02-2010 02:32 . pm   |   View his/her posts only

The following line of lisp code should return point p1 only if an intersection is found. If no intersection is found, it will return NIL.

(setq p1 (osnap (getpoint "'Pick intersection: ") "int"))

It works perfectly in 2009i, but crashes in 2010.

If the safety feature is omitted, namely:

(setq p1 (getpoint "'Pick point: ") )

it works in 2010, but it will now snap onto anything, even a void.

How do I work around this, other than to go back to 2009i. I need the safety feature like I need oxygen.

Rank: 1



posts: 0

Registered: 2012-1-14

Message 2 of 2

02-03-2010 10:03 . am   |   View his/her posts only
Dear Setq,

Thank you for your information very much. We found that this problem did exist in ZWCAD 2010 and have sent it to our R&D department. We here sincerely appologize for any inconvenience brought by this problem. We will try to fix this problem as soon as possible. If there is any progress about it, we will inform you soon.

Have a nice day.

Best Regards,
DennyDenny2010-03-02 10:03:33
See also