Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted (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 :unsure:

Edited by Lee Mac
Posted

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.

Posted

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

Posted

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)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...