Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Command: ; error: too many arguments

0 views
Skip to first unread message

Mike Hutchinson

unread,
Feb 21, 2003, 10:44:55 AM2/21/03
to
I know that the quantity of arguments required by the function must
match the number of arguments passed to it when the function if used.

(defun MyFunction (arg1 arg2 /)
;;; body
)


when I call this:
(MyFunction var1 var2)

this must match or this error occurs.

simple, right?

PROBLEM:
I have a company menu with a matching mnl file.
in the mnl file I have a function defined that several menu picks use.

at one point I added a new (4th) argument. the history of this function
is a little old so other versions of it
exists in other folders intended for passed releases of autocad.

when my menu pick attempts to use this I get the error.
the code that is right and the pick is right match up with the exact
number of functions.

close as I can tell another function by the same name... possibly not
even authored by me must be getting loaded after my mnl file - yet I
cannot seem to find it?
Anyone have a clue ?

the function name is MakelayCur

Jim Claypool

unread,
Feb 21, 2003, 11:30:05 AM2/21/03
to
Have you tried loading the function manually after everything else is
loaded, to see if it works?
If it does, then either you aren't loading the mnl you think you are, or
something else is defining the function after the mnl loads.

"Mike Hutchinson" <mhutc...@bbsae.com> wrote in message
news:3E564977...@bbsae.com...

Eric Schneider

unread,
Feb 21, 2003, 11:33:54 AM2/21/03
to
1. Did you look in ATOMS-FAMILY?

2. Does MakelayCur call any other functions with args?
--

Regards,
Eric S.
A2k/W2k

Randy Sanders

unread,
Feb 21, 2003, 11:31:59 AM2/21/03
to
Look for acad.lsp and acaddoc.lsp files. These are also loaded on startup.
You will have to search the whole system for them, not just the Autocad
directory, as they could be loaded from anywhere a drawing is opened from.

"Mike Hutchinson" <mhutc...@bbsae.com> wrote in message
news:3E564977...@bbsae.com...

Mike Hutchinson

unread,
Feb 24, 2003, 1:34:12 PM2/24/03
to
Ah ha! I found it!
I had another menu that was loading its mnl file.
the function with 3 args was getting loaded and redifining the one
function with 4 args.
fixed... thanks!
0 new messages