Author Topic: Reissue Challenge: Get all system variables with values  (Read 13192 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Reissue Challenge: Get all system variables with values
« Reply #30 on: March 11, 2010, 09:27:10 PM »
< .. >

EDIT:
*shock!* we can use the " / me " tag?!?!?!


That should be great for the next time you change your name John.

//--

What are you confused about today Sir ??
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Reissue Challenge: Get all system variables with values
« Reply #31 on: March 11, 2010, 09:40:46 PM »
ha-ha-ha You find that me changing my name every two weeks is anoying too? I was thinkng of starting a spread sheet.

slash-me is an Old 'IRC' thing (I'm easily amused).

I was confused at what Lee Mac said; and how I had no flies on me. I thought that ment that i was taking advantage of a situation...But i could Be wrong as usual.
« Last Edit: March 11, 2010, 09:47:51 PM by Se7en »
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Reissue Challenge: Get all system variables with values
« Reply #32 on: March 11, 2010, 09:58:15 PM »
I was confused at what Lee Mac said; and how I had no flies on me. I thought that ment that i was taking advantage of a situation...But i could Be wrong as usual.
Nah, I think he was just commenting on how much he enjoys your cleanliness.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Reissue Challenge: Get all system variables with values
« Reply #33 on: March 11, 2010, 10:07:12 PM »
*lol* ...I do tend to bath quite regularly.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

pkohut

  • Guest
Re: Reissue Challenge: Get all system variables with values
« Reply #34 on: March 11, 2010, 10:15:47 PM »
*lol* ...I do tend to bath quite regularly.

We appreciate that.  Any less regularly could be a problem though.  ;-)

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Reissue Challenge: Get all system variables with values
« Reply #35 on: March 11, 2010, 10:18:09 PM »
*lol* ...I do tend to bath quite regularly.

We appreciate that.  Any less regularly could be a problem though.  ;-)
Big Brother monitoring bathing habits now?
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Reissue Challenge: Get all system variables with values
« Reply #36 on: March 12, 2010, 12:04:57 AM »
<  .. >
I was confused at what Lee Mac said; and how I had no flies on me. I thought that ment that i was taking advantage of a situation...But i could Be wrong as usual.

Here in Aus' that means you move too fast for the flies to settle .. (fast being both physical and/or mental of course )
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Reissue Challenge: Get all system variables with values
« Reply #37 on: March 12, 2010, 12:17:24 AM »

So, we can now return to our normal broadcast ...
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Reissue Challenge: Get all system variables with values
« Reply #38 on: March 12, 2010, 08:48:41 AM »
You just couldn't resist stirring the pot could you. 8-)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Reissue Challenge: Get all system variables with values
« Reply #39 on: March 12, 2010, 01:46:03 PM »
Well i found some of my code that i used to generate that dat file but there are two problems with it:
1. the code is very specific and not very good (looks like i wrote most of it in a hurry).
2. All i have is about a couple of hundred lines of `parsing' code left. i must have typed over my code instead of making a new procedures as i parsed the files.

I can post some of the more useful items i have left, like this list i got from SMadsen a long time ago.
Code: [Select]
(setq get-sys-vars-list
 '(
         ;;;System related
         (getenv "Path")                    ;string System search paths
         (getenv "COMSPEC")                 ;string Cmd.exe path
         (getenv "UserName")                ;string User logon name
         (getenv "Temp")                    ;string Temp path
         (getenv "TMP")                     ;string Temp path
         (getenv "ComputerName")            ;string Computer name
         (getenv "Windir")                  ;string Windows path
         (getenv "OS")                      ;string Operating system
         (getenv "UserProfile")             ;string Current user profile path
         (getenv "Pathext")                 ;string Exec extensions
         (getenv "SystemDrive")             ;string System drive
         (getenv "SystemRoot")              ;string System root path
         (getenv "MaxArray")                ;integer

         ;;;General
         (getenv "ACAD")                    ;string Support search paths
         (getenv "ANSIHatch")               ;string Pattern file for ANSI setup 1
         (getenv "ANSILinetype")            ;string Linetype file for ANSI setup 1
         (getenv "ISOHatch")                ;string Pattern file for ISO setup 1
         (getenv "ISOLinetype")             ;string Linetype file for ISO setup 1
         (getenv "StartUpType")             ;string Current default for StartUp dialog
         (getenv "Measureinit")             ;string MEASUREINIT
         (getenv "InsertUnitsDefSource")    ;integer INSUNITSDEFSOURCE
         (getenv "InsertUnitsDefTarget")    ;integer INSUNITSDEFTARGET
         (getenv "LastTemplate")            ;string Last DWT used
         (getenv "Pickstyle")               ;integer
         (getenv "Coords")                  ;integer
         (getenv "ShowProxyDialog")         ;integer
         (getenv "Osmode")                  ;integer
         (getenv "EdgeMode")                ;integer
         (getenv "PAPERUPDATE")             ;integer
         (getenv "ACADPLCMD")               ;string Plotter command string
         (getenv "ImageHighlight")          ;integer
         (getenv "Attdia")                  ;integer
         (getenv "Attreq")                  ;integer
         (getenv "Delobj")                  ;integer
         (getenv "Dragmode")                ;integer
         (getenv "UseMRUConfig")            ;integer
         (getenv "PLSPOOLALERT")            ;integer
         (getenv "PLOTLEGACY")              ;integer
         (getenv "PSTYLEPOLICY")            ;integer
         (getenv "OLEQUALITY")              ;integer
         (getenv "Anyport")                 ;integer
         (getenv "Validation Policy")       ;integer
         (getenv "Validation Strategy")     ;integer
         (getenv "CommandDialogs")          ;integer CMDDIA
         (getenv "TempDirectory")           ;string Temp dir
         (getenv "PlotSpoolerDirectory")    ;string Spooler dir
         (getenv "DefaultLoginName")        ;string Default login
         (getenv "MenuFile")                ;string Default menu path
         (getenv "NetLocation")             ;string Default URL
         (getenv "ACADDRV")                 ;string Driver path
         (getenv "ACADHELP")                ;string Help path
         (getenv "PrinterConfigDir")        ;string Plotter path
         (getenv "PrinterStyleSheetDir")    ;string Plot styles path
         (getenv "PrinterDescDir")          ;string Plotter driver path
         (getenv "NewStyleSheet")           ;string Default .stb/.ctb file
         (getenv "DefaultFormatForSave")    ;integer Default saveas
         (getenv "DefaultConfig")           ;string Default pc3
         (getenv "LastModifiedConfig")      ;string Last pc3
         (getenv "MRUConfig")               ;string pc3?
         (getenv "ACADLOGFILE")             ;string Logfile
         (getenv "MaxDwg")                  ;integer
         (getenv "AVEMAPS")                 ;string Texture files path
         (getenv "TemplatePath")            ;string Templates path
         (getenv "DatabaseWorkSpacePath")   ;string Data Links path
         (getenv "DefaultPlotStyle")        ;string e.g. "ByLayer"
         (getenv "DefaultLayerZeroPlotStyle") ;string e.g."Normal"
         (getenv "LineWeightUnits")         ;integer
         (getenv "LWDEFAULT")               ;integer Default lineweight
         (getenv "CustomColors")            ;integer
         (getenv "Blipmode")                ;integer
         (getenv "ToolTips")                ;string
         (getenv "acet-Enable")             ;string
         (getenv "acet-MenuLoad")           ;string Loading of Express Tools menu
         (getenv "AcetRText:type")          ;string Current default for RTEXT, e.g. "Diesel"
         ;;added 02.10.01
         (getenv "CmdVisLines")             ;string Number of lines in command line window
         (getenv "MaxHatch")                ;string Maximum number of segments allowed in hatch pattern. Range 100 - 10000000
         ;;added 10.10.01 that's not a binary address but a date
         (getenv "AutoSnapColor")           ;string AutoSnap colour Integer
         (getenv "AutomaticSaveMinutes")    ;string Minutes between AutoSave

         ;; 1 used by MEASUREINIT and MEASUREMENT sysvars

         ;;;Editor Configuration
         (getenv "SDF_AttributeExtractTemplateFile") ;string ??
         (getenv "AutoSnapPolarAng")        ;string POLARANG
         (getenv "AutoSnapPolarDistance")   ;string POLARDIST
         (getenv "AutoSnapPolarAddAng")     ;string POLARADDANG
         (getenv "AutoSnapControl")         ;integer AUTOSNAP
         (getenv "AutoSnapTrackPath")       ;integer TRACKPATH
         (getenv "PickBox")                 ;integer PICKBOX
         (getenv "AutoSnapSize")            ;integer
         (getenv "PickFirst")               ;integer PICKFIRST
         (getenv "PickAuto")                ;integer PICKAUTO
         (getenv "MenuOptionFlags")         ;integer MENUCTL
         (getenv "FontMappingFile")         ;string
         (getenv "LogFilePath")             ;string
         (getenv "PSOUT_PrologFileName")    ;string
         (getenv "MainDictionary")          ;strin
         (getenv "CustomDictionary")        ;string
         (getenv "MTextEditor")             ;string
         (getenv "XrefLoadPath")            ;string
         (getenv "SaveFilePath")            ;string
         (getenv "AcadLspAsDoc")            ;string

         ;;;Drawing Window
         (getenv "Background")              ;integer Background color
         (getenv "Layout background")       ;integer PS Background color
         (getenv "XhairPickboxEtc")         ;integer Crosshair color
         (getenv "LayoutXhairPickboxEtc")   ;integer PS Crosshair color
         (getenv "Autotracking vector")     ;integer Autotracking vector color
         (getenv "MonoVectors")             ;integer
         (getenv "FontFace")                ;string Screen Menu
         (getenv "FontHeight")              ;integer
         (getenv "FontWeight")              ;integer
         (getenv "FontItalic")              ;integer
         (getenv "FontPitchAndFamily")      ;integer
         (getenv "CursorSize")              ;integer
         (getenv "HideWarningDialogs")      ;integer
         (getenv "SDIMode")                 ;integer

         ;;;Command Line Windows
         (getenv "CmdLine.ForeColor")       ;integer
         (getenv "CmdLine.BackColor")       ;integer
         (getenv "TextWindow.ForeColor")    ;integert
         (getenv "TextWindow.BackColor")    ;integer
         (getenv "CmdLine.FontFace")        ;string
         (getenv "CmdLine.FontHeight")      ;integer
         (getenv "CmdLine.FontWeight")      ;integer
         (getenv "CmdLine.FontItalic")      ;integer
         (getenv "CmdLine.FontPitchAndFamily") ;integer
         (getenv "TextWindow.FontFace")     ;string
         (getenv "TextWindow.FontHeight")   ;integer
         (getenv "TextWindow.FontWeight")   ;integer
         (getenv "TextWindow.FontItalic")   ;integer
         (getenv "TextWindow.FontPitchAndFamily") ;integer
    )
 )
;;;  Just the strings...
;;; (mapcar '(lambda (x) (cadr x)) get-sys-vars-list)

I was also thinking that the acad.exe isnt going to hold a lot of the better easter eggs we could find.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Reissue Challenge: Get all system variables with values
« Reply #40 on: March 12, 2010, 02:23:58 PM »
It sounds a little roundabout, but I suppose you could set up a reactor to monitor and log system variable changes, along with a "learn" on/off switch so it doesn't bog too much down.  It might not get *all* of the system variables but it should pick up the ones actually being used.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Reissue Challenge: Get all system variables with values
« Reply #41 on: March 12, 2010, 02:24:58 PM »
You just couldn't resist stirring the pot could you. 8-)


 :evil: