Results 1 to 4 of 4

Thread: System Variables

  1. #1
    Active Member
    Join Date
    2008-07
    Posts
    77

    Default System Variables

    Hello all,
    Does anyone know how to iterate through the system variables?

    I know you can use GetVariable and SetVariable but I want to build an array of the variables for the current drawing.

    Thanks

  2. #2
    Forum Manager, Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    4,777

    Default Re: System Variables

    There is a file called acadinfo.lsp in the acad.exe folder. It has several functions you can use. One will output all the vars to an scr file so you can use it to reset vars to the state they were when the script was generated. You can also examine the code to see how they did it.
    C:> ED WORKING....

  3. #3
    Active Member
    Join Date
    2008-07
    Posts
    77

    Default Re: System Variables

    Quote Originally Posted by Ed Jobe View Post
    There is a file called acadinfo.lsp in the acad.exe folder. It has several functions you can use. One will output all the vars to an scr file so you can use it to reset vars to the state they were when the script was generated. You can also examine the code to see how they did it.
    oh no, not lisp

    Is there no way to do this in vba?

    Thanks Ed,

  4. #4
    Forum Manager, Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    4,777

    Default Re: System Variables

    As I said before, "you can examine the code to see how they did it". The assumption was that you would then follow the same logic in vba.
    C:> ED WORKING....

Similar Threads

  1. System Variables
    By peter in forum AutoLISP
    Replies: 5
    Last Post: 2012-01-10, 07:55 PM
  2. System Variables
    By dmingo in forum ATP Course Wishlist
    Replies: 0
    Last Post: 2010-02-04, 12:54 PM
  3. system variables
    By robarc in forum AutoCAD 3D (2006 or below)
    Replies: 2
    Last Post: 2009-06-16, 01:33 PM
  4. System Variables
    By jonathan_fairholm in forum AutoCAD General
    Replies: 2
    Last Post: 2005-03-08, 09:28 AM
  5. system variables
    By ajtrahan in forum AutoCAD General
    Replies: 3
    Last Post: 2005-01-26, 01:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •