How i think i would lookinto going about this would be to take a snapshot of the variables with out any lisps loaded. (Custom of course) and take a snapshot later. Compair the two with a small lil list parser progy.
There is one at AfraLisp that does it this way.
What do you mean by "were added by AutoCad" ?
What I mean is the vars that would be used by autocad with no customization what-so-ever.
I was trying to get a list of used vars minus the ones used for autocad commands, which would leave me with the vars that my customization has put in. I wanted to check to make sure that some rogue vars were not getting set by my bad programming and causing other proggys to mess up because of vars with too much data or trying to merge wrong data types.
A good example would be Keiths' code for SET and READ.
(setq count 0)
(repeat 10
(setq temp (getstring "\nEnter string: "))
(set (read (strcat "string[" (rtos count 2 0) "]")) temp)
(setq count (1+ count))
)
This sets 10 vars that are very easy to forget if we are not careful. I know the vars get reset when we close AutoCad, but how many of us use a custom mnl file that loads code at startup (I know I do). I wanted to write a little tool that would show me all the vars that my customization added with their value. I don't care about the ones without a value, just the ones with a value.
Does that make any sense or am I totally out in left field?