Results 1 to 2 of 2

Thread: Project Files Search Path

  1. #1
    Member
    Join Date
    2007-06
    Posts
    8
    Login to Give a bone
    0

    Default Project Files Search Path

    How can I automate the removal of a pointer from Project Files Search Path with code?


    There are several ways to add pointers and paths. I prefer:

    (setenv "Project Settings\\MyProject" "X:\\MyPath\\MyFolder")

    As well as setting a pointer to nil:

    (setenv "Project Settings\\MyProject" "")



    But I can't figure out how to remove a pointer from list.

    Any ideas?

    thanks - chris

  2. #2
    Member
    Join Date
    2007-06
    Posts
    8
    Login to Give a bone
    0

    Default Re: Project Files Search Path

    Found it:
    ======

    vl-registry-delete
    Deletes the specified key or value from the Windows registry

    (vl-registry-delete reg-key [val-name])

    Arguments

    reg-key
    A string specifying a Windows registry key.

    val-name
    A string containing the value of the reg-key entry.

    If val-name is supplied and is not nil, the specified value will be purged from the registry. If val-name is absent or nil, the function deletes the specified key and all of its values.

    Return Values

    T if successful; otherwise nil.

    Examples

    _$ (vl-registry-write "HKEY_CURRENT_USER\\Test" "" "test data")
    "test data"
    _$ (vl-registry-read "HKEY_CURRENT_USER\\Test")
    "test data"
    _$ (vl-registry-delete "HKEY_CURRENT_USER\\Test")
    T
    NoteThis function cannot delete a key that has subkeys. To delete a subkey you must use vl-registry-descendents to enumerate all subkeys and delete all of them.

Similar Threads

  1. Import Project Support Search Path, not via an ARG file
    By Ms. Serene in forum AutoCAD Customization
    Replies: 10
    Last Post: 2015-06-01, 06:31 PM
  2. Project File Search Path, Projectname, and Favorites
    By pauljordan in forum AutoCAD General
    Replies: 4
    Last Post: 2010-07-20, 07:54 PM
  3. Go directly to Project files (Search Paths)
    By kleenhippie in forum AutoCAD General
    Replies: 5
    Last Post: 2006-02-07, 07:46 PM
  4. Edit Project Files Search Path.
    By jrd.chapman in forum AutoLISP
    Replies: 2
    Last Post: 2005-11-24, 08:19 PM
  5. Project Files Search Path
    By Avatart in forum AutoCAD General
    Replies: 4
    Last Post: 2004-07-01, 05:42 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
  •