Support File Search Paths - Adding Paths

Discussion in 'AutoCAD' started by Scott, Dec 23, 2003.

  1. Scott

    Scott Guest

    I was wondering, is there a way to add new paths to the Support File Search
    Paths in the Autocad Options dialog box, using Lisp?

    TIA

    Scott
     
    Scott, Dec 23, 2003
    #1
  2. Yes. Please look at this function: http://code.acadx.com/autolisp/003.htm

    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | I was wondering, is there a way to add new paths to the Support File
    Search
    | Paths in the Autocad Options dialog box, using Lisp?
    |
    | TIA
    |
    | Scott
    |
    |
     
    R. Robert Bell, Dec 23, 2003
    #2
  3. See the "Support Path" posted today by BobBuilder
     
    Jason Piercey, Dec 23, 2003
    #3
  4. Scott

    R.K. McSwain Guest

    (setq var (vlax-get (setq tmp (vlax-get (vlax-get (vlax-get-acad-object) "Preferences") "Files")) "SupportPath"))

    Manipulate "var" as necessary then:
    (vlax-put tmp "SupportPath" var)
     
    R.K. McSwain, Dec 23, 2003
    #4
  5. Scott

    Scott Guest

    Hi,

    So I set tmp to "c:\\temp\\" and ran your code, and it returned var as a
    list of all the directories entered as Support Directories. I then ran the
    (vlax-put tmp "SupportPath" var) code, and I was told that "c:\\temp\\" is
    not a valid vla-object. How do I go about making it a vla-object?

    Thanks again for all of your input,

    Scott

    I have
    (setq var (vlax-get (setq tmp (vlax-get (vlax-get (vlax-get-acad-object)
    "Preferences") "Files")) "SupportPath"))

    Manipulate "var" as necessary then:
    (vlax-put tmp "SupportPath" var)
     
    Scott, Dec 23, 2003
    #5
  6. Scott

    R.K. McSwain Guest

    Read the code carefully.
    "tmp" is the variable being set to the VLA-Object returned by (vlax-get (vlax-get (vlax-get-acad-object) "Preferences") "Files")
    "var" is the variable that contains the current path

    modify "var" to whatever you want, then run (vlax-put tmp "SupportPath" var)
    .....Which in plain english ----"puts" the SupportPath "var" into "tmp" (remember tmp is the VLA-Object from above)
     
    R.K. McSwain, Dec 23, 2003
    #6
  7. Scott

    Scott Guest

    Ahh, I got it now, thanks again. I was just being dumb for a moment, sorry.

    Scott

    Read the code carefully.
    "tmp" is the variable being set to the VLA-Object returned by (vlax-get
    (vlax-get (vlax-get-acad-object) "Preferences") "Files")
    "var" is the variable that contains the current path

    modify "var" to whatever you want, then run (vlax-put tmp "SupportPath" var)
    .....Which in plain english ----"puts" the SupportPath "var" into "tmp"
    (remember tmp is the VLA-Object from above)
     
    Scott, Dec 23, 2003
    #7
  8. Scott

    egen Guest

    i was trying to make a setup programe to set my own system
    environment, and i found out that the search path is stored in
    the registry , which has the same formate of DOS search path, usually, it is "acad\support\;acad\;...;"
    u can find it out using registry editor by running 'regedit.exe'
    in Windows "RUN" dialog.
    _____
    TAIWAN IS PART OF CHINA
    BY ERIC FROM CHINA
     
    egen, Dec 24, 2003
    #8
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.