Author Topic: What's the problem? Error: AutoCAD.Application: Not applicable  (Read 1172 times)

0 Members and 1 Guest are viewing this topic.

asami486

  • Guest
What's the problem? Error: AutoCAD.Application: Not applicable
« on: January 17, 2017, 09:09:21 PM »
i've got a good lisp made by Alan J. Thompson (alanjt! Thank you always!) from here
BUT I got the following message when I command.

"Error: AutoCAD.Application: Not applicable"

What's the problem??

mailmaverick

  • Bull Frog
  • Posts: 492
Re: What's the problem? Error: AutoCAD.Application: Not applicable
« Reply #1 on: January 17, 2017, 11:27:26 PM »
It works fine with me in AutoCAD 2014.
What version are you using ?
Kindly attach your sample file so that it can be checked.

asami486

  • Guest
Re: What's the problem? Error: AutoCAD.Application: Not applicable
« Reply #2 on: January 18, 2017, 01:04:45 AM »
I'm using AutoCAD 2010.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2071
  • class keyThumper<T>:ILazy<T>
Re: What's the problem? Error: AutoCAD.Application: Not applicable
« Reply #3 on: January 18, 2017, 01:41:55 AM »
Try this
Replace the *error* function ( line 32 to 38 in your attached code) with this :
Code - Auto/Visual Lisp: [Select]
  1. ;;; error handler
  2. ;;;  (defun *error* (#Message)
  3. ;;;    (and #Message
  4. ;;;         (not (wcmatch (strcase #Message) "*BREAK*,*CANCEL*,*QUIT*"))
  5. ;;;         (princ (strcat "\nError: " #Message))
  6. ;;;    ) ;_ and
  7. ;;;  )
  8.   (defun *error* (#Message)
  9.     (and #Message
  10.          (not (wcmatch (strcase #Message) "*BREAK*,*CANCEL*,*QUIT*"))
  11.          (progn
  12.            (princ (strcat "\nError: " #Message))
  13.            (vl-bt)
  14.          )
  15.     )
  16.   )

Please post any resulting error message here .
« Last Edit: January 18, 2017, 01:46:06 AM by kdub »
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00


some people complain about loading the dishwasher

Sometimes the question is more important than the answer.

asami486

  • Guest
Re: What's the problem? Error: AutoCAD.Application: Not applicable
« Reply #4 on: January 18, 2017, 02:46:06 AM »
It works fine with your help.
I really appreciate it. mr.kdub!