Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

Express Tools has one, type Vars2Scr.

Posted
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

Posted
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.

Posted
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

Posted
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. :)

Posted

After going cross eyed changing it:?, here is the updated lisp (for acad 2010) hope someone else finds it useful.

SysVar.lsp

Posted

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))

Posted

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))

Posted

I use

C:\Program Files\Autodesk\ACADM 2011\Support\acadinfo.lsp

 

and UltraCompare ... but any file comparer will work well

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...