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

0 Members and 1 Guest are viewing this topic.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8662
  • AKA Daniel
Re: Reissue Challenge: Get all system variables with values
« Reply #15 on: March 10, 2010, 08:36:44 AM »
nice!
don't forget this

Code: [Select]
if(buf.restype == RTSTR)
  free(buf.resval.rstring);


T.Willey

  • Needs a day job
  • Posts: 5251
Re: Reissue Challenge: Get all system variables with values
« Reply #16 on: March 10, 2010, 11:17:47 AM »
Thanks for finding a way to do this Paul!  It really bothered me that I couldn't find a way to make it work.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

pkohut

  • Guest
Re: Reissue Challenge: Get all system variables with values
« Reply #17 on: March 10, 2010, 01:42:11 PM »
Thanks for finding a way to do this Paul!  It really bothered me that I couldn't find a way to make it work.

You guys were on the right path, just need to narrow the workload a bit.  8-)

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Reissue Challenge: Get all system variables with values
« Reply #18 on: March 10, 2010, 02:25:40 PM »
'09 Electrical versions

With Lisp.
Ascii : 3.953 seconds
Unicode : 0.328 seconds
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: Reissue Challenge: Get all system variables with values
« Reply #19 on: March 10, 2010, 02:29:52 PM »
Tim,

I'm a bit lost in with all the 'higher knowledge' of this thread, but just curious, how can this:

Code: [Select]
strings -u -n1 acad.exe > StringsU.txt
strings -a -n1 acad.exe > StringsA.txt

be applied with LISP? [ Assuming you went down that route ]

JohnK

  • Administrator
  • Seagull
  • Posts: 10605
Re: Reissue Challenge: Get all system variables with values
« Reply #20 on: March 10, 2010, 02:44:19 PM »
What are the results you guys are getting after a parse of these strings?  ...the reason i ask is because i could have sworn that ive done this; let me look.
***
I had a list of `known' vars and i compared that to my `string' list i read from the mep 05 acad.exe whereupon i came up with the DATA file in this post: http://www.theswamp.org/index.php?topic=14632.0
With a var on its own line, i had about 700.

When i get some time i want to try and find some of the code i used to generate (compare files and such) that dat file and study this post more because im still a bit confused.

EDIT: Just saw Tim's post....
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Reissue Challenge: Get all system variables with values
« Reply #21 on: March 10, 2010, 03:17:44 PM »
Tim,

I'm a bit lost in with all the 'higher knowledge' of this thread, but just curious, how can this:

Code: [Select]
strings -u -n1 acad.exe > StringsU.txt
strings -a -n1 acad.exe > StringsA.txt

be applied with LISP? [ Assuming you went down that route ]

I didn't Lee.  I use Lisp to evaluate what was returned by that.  I didn't want to take the time to figure out how to call the command through lisp, I just processed what it returned.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: Reissue Challenge: Get all system variables with values
« Reply #22 on: March 10, 2010, 05:09:44 PM »
Tim,

I'm a bit lost in with all the 'higher knowledge' of this thread, but just curious, how can this:

Code: [Select]
strings -u -n1 acad.exe > StringsU.txt
strings -a -n1 acad.exe > StringsA.txt

be applied with LISP? [ Assuming you went down that route ]

I didn't Lee.  I use Lisp to evaluate what was returned by that.  I didn't want to take the time to figure out how to call the command through lisp, I just processed what it returned.

Ah, I see thanks buddy  :-)

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8662
  • AKA Daniel
Re: Reissue Challenge: Get all system variables with values
« Reply #23 on: March 11, 2010, 12:04:28 AM »
So did anyone catch any strange undocumented sysvars?  :-)

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Reissue Challenge: Get all system variables with values
« Reply #24 on: March 11, 2010, 12:52:31 AM »
So did anyone catch any strange undocumented sysvars?  :-)

 :|
Does anyone have a list of the documented ones ?  :lol:
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.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8662
  • AKA Daniel
Re: Reissue Challenge: Get all system variables with values
« Reply #25 on: March 11, 2010, 01:05:42 AM »
So did anyone catch any strange undocumented sysvars?  :-)

 :|
Does anyone have a list of the documented ones ?  :lol:

good point  :-o

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
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: 10605
Re: Reissue Challenge: Get all system variables with values
« Reply #27 on: March 11, 2010, 10:06:34 AM »
I believe Kerry was just making a facetious remark.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: Reissue Challenge: Get all system variables with values
« Reply #28 on: March 11, 2010, 10:10:00 AM »
I believe Kerry was just making a facetious remark.

No flies on you John  :wink:

JohnK

  • Administrator
  • Seagull
  • Posts: 10605
Re: Reissue Challenge: Get all system variables with values
« Reply #29 on: March 11, 2010, 10:17:42 AM »
* Se7en confused.
I'm taking advantage of a situation?


I'm not trying to be difficult here i truly dont understand.



EDIT:
*shock!* we can use the " / me " tag?!?!?!
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org