TheSwamp

Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: ozimad on June 30, 2010, 09:05:10 AM

Title: Beginner question running command
Post by: ozimad 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
Title: Re: Beginner question running command
Post by: ozimad 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)
)