Snapang ....crash!

Discussion in 'AutoCAD' started by Kiwi Russ, Mar 18, 2005.

  1. Kiwi Russ

    Kiwi Russ Guest

    Using this code sometimes causes Acad 2005 to crash without any fatal error
    message.
    It just closes down, and what's frustrating it doesn't even create a sv$
    file to retrieve.
    Does anyone know what may causes this to happen?
    Thanks Russ

    (defun c:SnapCursor (/ e elist)
    (setq e (entsel "\nSelect line: "))
    (if (= (cdr
    (assoc 0
    (setq elist(entget (car e)))))"LINE")
    (setvar "snapang"
    (angle
    (cdr (assoc 10 elist))
    (cdr (assoc 11 elist)))))
    (princ)
    );defun
     
    Kiwi Russ, Mar 18, 2005
    #1
  2. Kiwi Russ

    BillZ Guest

    Works fine here on R2005.


    Bill
     
    BillZ, Mar 18, 2005
    #2
  3. Kiwi Russ

    Kiwi Russ Guest

    Yeah - It I thought it might behave itself when other people try it. It is
    only intermitent...
     
    Kiwi Russ, Mar 18, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.