Author Topic: Lisp Problems in 2010  (Read 7468 times)

0 Members and 1 Guest are viewing this topic.

Luke

  • Guest
Lisp Problems in 2010
« on: September 09, 2009, 03:20:14 PM »
This code was written with a ton of assistance from ronjonp & CAB... http://www.theswamp.org/index.php?topic=20863.0

The intent is to go into any of my drawings and with 1 click of a button it will print all my 8-1/2 x 11 title blocks.

Worked just fine in 2006 but now will not with 2010.

Error I get is
Quote
; error: no function definition: nil

Any help is appreciated.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Lisp Problems in 2010
« Reply #1 on: September 09, 2009, 03:32:21 PM »
is your Default Windows System Printer.pc3 exist ?
Keep smile...

Luke

  • Guest
Re: Lisp Problems in 2010
« Reply #2 on: September 09, 2009, 03:36:10 PM »
Yes it is.  

None of the lisps work, regardless of printer.  I think it is a problem with the code before the command "-plot"
« Last Edit: September 09, 2009, 03:40:40 PM by Luke »

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Lisp Problems in 2010
« Reply #3 on: September 09, 2009, 03:37:50 PM »
Yes it is. 

None of them lisps work, regardless of printer.  I think it is a problem with the code before the command "-plot"

strange...the code work fine for me..
Keep smile...

Luke

  • Guest
Re: Lisp Problems in 2010
« Reply #4 on: September 09, 2009, 03:40:07 PM »
in 2010?

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Lisp Problems in 2010
« Reply #5 on: September 09, 2009, 03:54:16 PM »
yes...

In fact...the problem is on the script routine..not the code above
« Last Edit: September 09, 2009, 04:02:02 PM by Andrea »
Keep smile...

Luke

  • Guest
Re: Lisp Problems in 2010
« Reply #6 on: September 09, 2009, 04:05:43 PM »
OK so in 2006 I setup all the machines in the office and went through the routine a million times. 

Maybe now in 2010 I'm forgetting a simple step???

1) I pointed my support path to look at the folder where the LCC_Autoplots.lsp file is saved
2) I appload the LCC_Autoplots.lsp file
3) I insert the title block
4) I click the button with the applicable macro or enter at the command line
Code: [Select]
autoplotdell17100811model
and i get on the command line ; error: no function definition: nil

Anybody see something I'm missing?
Is it working for everybody else in 2010?

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Lisp Problems in 2010
« Reply #7 on: September 09, 2009, 04:23:32 PM »
OK so in 2006 I setup all the machines in the office and went through the routine a million times. 

Maybe now in 2010 I'm forgetting a simple step???

1) I pointed my support path to look at the folder where the LCC_Autoplots.lsp file is saved
2) I appload the LCC_Autoplots.lsp file
3) I insert the title block
4) I click the button with the applicable macro or enter at the command line
Code: [Select]
autoplotdell17100811model
and i get on the command line ; error: no function definition: nil

Anybody see something I'm missing?
Is it working for everybody else in 2010?

did you try (c:autoplotdell17100811model) ??
Keep smile...

Luke

  • Guest
Re: Lisp Problems in 2010
« Reply #8 on: September 09, 2009, 04:33:52 PM »
Yes I did try that.

That is the macro that is on my custom button and I also tried it on the command line.

Every time I get

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Lisp Problems in 2010
« Reply #9 on: September 09, 2009, 04:46:04 PM »
Define a new error function ( code below ) in the drawing, and then try the command, and then copy/paste the command line info into your next post.  This should give people more info.

Code: [Select]
(defun *error* (msg) (vl-bt))
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Luke

  • Guest
Re: Lisp Problems in 2010
« Reply #10 on: September 09, 2009, 04:52:32 PM »
Command: autoplotdell17100811model
; error: no function definition: nil

Command:
Command: (defun *error* (msg) (vl-bt))
*ERROR*

Command: autoplotdell17100811model
Backtrace:
[0.63] (VL-BT)
[1.59] (*ERROR* "no function definition: nil")
[2.54] (_call-err-hook #<SUBR @0ec56564 *ERROR*> "no function definition: nil")
[3.48] (sys-error "no function definition: nil")
:ERROR-BREAK.43 nil
[4.40] (#<SUBR @0c7745b4 null-fun-hk> <Entity name: 7ee92210>)
[5.36] (nil <Entity name: 7ee92210>)
[6.31] (mapcar nil (<Entity name: 7ee92210>))
[7.25] (MAPCAR VLAX-ENAME->VLA-OBJECT (<Entity name: 7ee92210>))
[8.19] (C:AUTOPLOTDELL17100811MODEL)
[9.15] (#<SUBR @0ec5671c -rts_top->)
[10.12] (#<SUBR @0c77435c veval-str-body> "(C:AUTOPLOTDELL17100811MODEL)" T
#<FILE internal>)
:CALLBACK-ENTRY.6 (:CALLBACK-ENTRY)
:ARQ-SUBR-CALLBACK.3 (nil 0)

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Lisp Problems in 2010
« Reply #11 on: September 09, 2009, 04:58:22 PM »
just a quick glance but it looks to me like VLAX-ENAME->VLA-OBJECT should be quoted, i.e. 'VLAX-ENAME->VLA-OBJECT
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Luke

  • Guest
Re: Lisp Problems in 2010
« Reply #12 on: September 10, 2009, 08:25:11 AM »
Quote
'VLAX-ENAME->VLA-OBJECT
is quoted

The lisp is attached at the beginning on the thread.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Lisp Problems in 2010
« Reply #13 on: September 10, 2009, 08:37:50 AM »
(vl-load-com)

??
Keep smile...

Luke

  • Guest
Re: Lisp Problems in 2010
« Reply #14 on: September 10, 2009, 08:43:20 AM »
Andrea I'm not sure what you are asking or suggesting.

I have tried to write lisps and just can not get them.

This code was all written by ronjonp & CAB over a year ago.

Again this lisp work in 2006 but not in 2010.
« Last Edit: September 10, 2009, 08:52:32 AM by Luke »