nicolas Posted August 6, 2012 Posted August 6, 2012 HI, I have noted that using for the sake of this example ChangeBlockInsertionV1-1 after CopyRenameBlockV1-3 yield s "* Error : too few arguments **". I believe this is due to the two lisps sharing the same variables which is plausible given they have been written by the same author. I wonder whether there is a way to flush all variables automatically following use of an autolisp or visual lisp. Thanks for your help. Quote
MSasu Posted August 6, 2012 Posted August 6, 2012 Seems that those tools share one function name for sub-function definitions requiring different number of arguments. The function that fails is the one that is loaded first – his sub-function is redefined by the one loaded after. There are few work-around for this: move sub-function definitions inside main function, locate the trouble-maker function name and rename it in one tool, ensure that the code is loaded before each run, if they perform the same action, move that sub-function (should analize the code to decide which version) in a library and adjust the two routines to use it. Quote
Lee Mac Posted August 6, 2012 Posted August 6, 2012 (edited) Sorry, I altered the definition of my 'SelectIf' function and haven't yet got around to updating every program in which it is used... EDIT: Though, I see no conflicting functions in the programs that you note in the first post Edited August 6, 2012 by Lee Mac Quote
Matt_Just Posted August 7, 2012 Posted August 7, 2012 I believe pressing Alt-F4 will flush them for you I was thinking of writing a function and variable list collector routine for just such cases. (and because it would be nice to tidy up some of my hashed together programming) anyone located the lexical dictionary that VLIDE uses as a filter for colour coding ? VLIDE.DSK probably defines it, but I can't track it down. Quote
BIGAL Posted August 7, 2012 Posted August 7, 2012 Maybe start this in seperate post if you wnat an answer "anyone located the lexical dictionary that VLIDE uses as a filter for colour coding ? VLIDE.DSK probably defines it, but I can't track it down". Back to post thanks to Lee for "Debugging code with vlisp editor" when you check code it gives a list of variables as part of its check http://lee-mac.com/debugvlide.html Quote
Matt_Just Posted August 7, 2012 Posted August 7, 2012 BIGAL, LM's guide is fantastic I agree. .. however i was aiming at : if you are comparing two lisps at the same time and also want a complete list of functions and variables side by side then an easy to make lisp would provide a neat solution. ...which also uses the VLIDE editors functionality (ie. the lexical library)... following me ? This solution would also provide a way of checking if future issues as per topic are going to arise by having a collection of your global lisp functions & variables on hand (in a searchable text document) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.