Small Fish Posted April 27, 2010 Posted April 27, 2010 Is there a quick/easy way of comparing system variables with a 'problem machine' to that of a machine that works fine? As we all know Autocad does some odd things sometimes - and it's usually a system variable setting change. The problem is trying to locate which one. In the system variable editor, it is possible to save all system variables with their settings, and print them out, which about 10 A4 Sheets. These can be compared to a machine that has no problems, which long and tedious. Does anyone know of a program or better method of finding differences in system variables between two machines? thanks SF Quote
NBC Posted April 27, 2010 Posted April 27, 2010 i would export the system variables from the two machines in the way that you are doing, and then copy and paste them both into one excel file, and compare them in there. i've done this in the past and was surprised at how many variables were different; and thus gave me ideas of what to put into a company acad.lsp file Quote
lpseifert Posted April 27, 2010 Posted April 27, 2010 Have a look here http://www.cadtutor.net/forum/showthread.php?t=40990&highlight=COMPARE+SYSTEM+VARIABLES Quote
Small Fish Posted April 27, 2010 Author Posted April 27, 2010 Have a look herehttp://www.cadtutor.net/forum/showthread.php?t=40990&highlight=COMPARE+SYSTEM+VARIABLES Yes I had a look at that lisp - its a little out of date, as they are 2007 variables. I am in the process of updating the lisp. However I have not yet used it properly so I am not sure - but it looks like it might be what I am after. thanks Quote
Small Fish Posted April 27, 2010 Author Posted April 27, 2010 Express Tools has one, type Vars2Scr. thanks Alan - but all that does is just print out a list of current system variable settings and it does not give any comparsion Quote
alanjt Posted April 27, 2010 Posted April 27, 2010 thanks Alan - but all that does is just print out a list of current system variable settings and it does not give any comparsion Come on man, use a little imagination.:wink: I think Notepad++ has an option to compare contents of two text files. Quote
Small Fish Posted April 27, 2010 Author Posted April 27, 2010 Come on man, use a little imagination.:wink: I think Notepad++ has an option to compare contents of two text files. thanks but I think I will stick with Lloyd Beachy's Sysvar lisp - its far easier to use once it's modified Quote
alanjt Posted April 27, 2010 Posted April 27, 2010 thanks but I think I will stick with Lloyd Beachy's Sysvar lisp - its far easier to use once it's modified Modify away. I just wanted you to be aware of Vars2Scr. Quote
Small Fish Posted April 28, 2010 Author Posted April 28, 2010 After going cross eyed changing it:?, here is the updated lisp (for acad 2010) hope someone else finds it useful. SysVar.lsp Quote
Lee Mac Posted April 28, 2010 Posted April 28, 2010 Why put yourself through all that? either use Notepad++, or use Vars2Scr, and run each file through something like this: (defun c:FileCompare (/ _read f1 f2 out l1 l2 x y o ) (defun _read ( file / o n lst ) (cond ( (setq o (open file "r")) (while (setq n (read-line o)) (setq lst (cons n lst))) (close o))) (reverse lst)) (if (and (setq f1 (getfiled "Select File 1" "" "txt" 16)) (setq f2 (getfiled "Select File 2" "" "txt" 16)) (setq out (getfiled "Select Output File" "" "txt" 1))) (progn (setq l1 (_read f1) l2 (_read f2) o (open out "w")) (while (and (setq x (car l1) y (car l2))) (or (eq x y) (write-line (strcat x "\t\t\t" y) o)) (setq l1 (cdr l1) l2 (cdr l2))) (close o) (startapp "notepad" out))) (princ)) Quote
alanjt Posted April 28, 2010 Posted April 28, 2010 LoL You're more popular. Maybe he'll listen to you.:wink: Why put yourself through all that? either use Notepad++, or use Vars2Scr, and run each file through something like this: (defun c:FileCompare (/ _read f1 f2 out l1 l2 x y o ) (defun _read ( file / o n lst ) (cond ( (setq o (open file "r")) (while (setq n (read-line o)) (setq lst (cons n lst))) (close o))) (reverse lst)) (if (and (setq f1 (getfiled "Select File 1" "" "txt" 16)) (setq f2 (getfiled "Select File 2" "" "txt" 16)) (setq out (getfiled "Select Output File" "" "txt" 1))) (progn (setq l1 (_read f1) l2 (_read f2) o (open out "w")) (while (and (setq x (car l1) y (car l2))) (or (eq x y) (write-line (strcat x "\t\t\t" y) o)) (setq l1 (cdr l1) l2 (cdr l2))) (close o) (startapp "notepad" out))) (princ)) Quote
Kerry Brown Posted April 28, 2010 Posted April 28, 2010 I use C:\Program Files\Autodesk\ACADM 2011\Support\acadinfo.lsp and UltraCompare ... but any file comparer will work well Quote
Se7en Posted April 28, 2010 Posted April 28, 2010 i use a custom autolisp report vars util and diff (vim -d ). As far as diff'ing tools goes: http://gnuwin32.sourceforge.net/packages/diffutils.htm 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.