Author Topic: Beginner question running command  (Read 3757 times)

0 Members and 1 Guest are viewing this topic.

ozimad

  • Guest
Beginner question running command
« on: June 30, 2010, 09:05:10 AM »
I have 2 picture buttons absolutely identical. With the same code to run. Both buttons have event envoke 1.

(DEFUN c:menu_Plan_GraphicButton6_OnClicked ()
        (c:myfun)
   (PRINC)
)

(DEFUN c:menu_Plan_GraphicButton7_OnClicked ()
        (c:myfun)
   (PRINC)
)


and this is what i get i command line in autocad

Command: ; error: too few arguments                                 <--- this do not run
Command: ; error: no function definition: C:myfun                 <--- this error because the lisp is not loaded, it runs ok if it is lisp is loaded.

help me plz, a wasted half a day on this allready.
Thanks a lot

ozimad

  • Guest
Re: Beginner question running command
« Reply #1 on: June 30, 2010, 09:30:09 AM »
unbelievable but brackets  :ugly:
Brackets were lost.....  :-D

(DEFUN  c:menu_Main_GraphicButtongl_OnClicked ()
        (c:myfun)
   (PRINC)
)